Appearance
adam_prism_external_fields_object
ADAM, PRISM external fields definition, CPU backend.
Source: src/app/prism/common/adam_prism_external_fields_object.F90
Dependencies
Contents
- prism_external_fields_object
- add_external_fields_interface
- sub_external_fields_interface
- initialize
- load_from_file
- add_external_fields_rmf
- sub_external_fields_rmf
- description
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
INI_SECTION_NAME | character(len=15) | parameter | INI (config) file section name. |
EF_TYPE_MAGNETIC_NOZZLE | character(len=15) | parameter | Magnetic Nozzle. |
EF_TYPE_NONE | character(len=4) | parameter | Disable external field. |
EF_TYPE_RMF | character(len=3) | parameter | Rotating Magnetic Field. |
EF_TYPE_RMF_AND_MAGNETIC_NOZZLE | character(len=23) | parameter | Rotating Magnetic Field/Magnetic Nozzle. |
Derived Types
prism_external_fields_object
PRISM external fields object.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
mpih | type(mpih_object) | MPI handler. | |
ef_type | character(len=99) | Field type. | |
RMF_frequency | real(kind=R8P) | Rotating magnetic field frequency. | |
RMF_B_amplitude | real(kind=R8P) | Rotating magnetic field amplitude. | |
RMF_rotation_axis | character(len=99) | Rotating magnetic field rotation axis (X, Y, Z). | |
alpha | integer(kind=I4P) | RMF rotation axis coordinate 1 | |
beta | integer(kind=I4P) | RMF rotation axis coordinate 2 | |
gamm | integer(kind=I4P) | RMF rotation axis coordinate 3 | |
add_external_fields | procedure(add_external_fields_interface) | pass(self), pointer | Add external fields. |
sub_external_fields | procedure(sub_external_fields_interface) | pass(self), pointer | Subtract external fields. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
description | pass(self) | Return pretty-printed object description. |
initialize | pass(self) | Initialize IC. |
load_from_file | pass(self) | Load config from file. |
add_external_fields_rmf | pass(self) | Add rotating magnetic field to the field. |
sub_external_fields_rmf | pass(self) | Add rotating magnetic field to the field. |
Interfaces
add_external_fields_interface
sub_external_fields_interface
Subroutines
initialize
Initialize external fields.
fortran
subroutine initialize(self, file_parameters)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_external_fields_object) | inout | External fields. | |
file_parameters | type(file_ini) | in | Simulation parameters ini file handler. |
Call graph
load_from_file
Load config from file.
fortran
subroutine load_from_file(self, file_parameters, go_on_fail)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_external_fields_object) | inout | External fields. | |
file_parameters | type(file_ini) | in | Simulation parameters ini file handler. | |
go_on_fail | logical | in | optional | Go on if load fails. |
Call graph
add_external_fields_rmf
Add rotating magnetic field to the field.
fortran
subroutine add_external_fields_rmf(self, field, time, dt, gamm, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_external_fields_object) | inout | External fields. | |
field | type(field_object) | inout | The field. | |
time | real(kind=R8P) | in | Current simulation time. | |
dt | real(kind=R8P) | in | optional | Time step. |
gamm | real(kind=R8P) | in | optional | Gamma values of RK SSP |
q | real(kind=R8P) | inout | Primitive variables. |
sub_external_fields_rmf
Add rotating magnetic field to the field.
fortran
subroutine sub_external_fields_rmf(self, field, time, dt, gamm, q)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_external_fields_object) | inout | External fields. | |
field | type(field_object) | inout | The field. | |
time | real(kind=R8P) | in | Current simulation time. | |
dt | real(kind=R8P) | in | optional | Time step. |
gamm | real(kind=R8P) | in | optional | Gamma values of RK SSP |
q | real(kind=R8P) | inout | Primitive variables. |
Functions
description
Return a pretty-formatted object description.
Attributes: pure
Returns: character(len=:)
fortran
function description(self) result(desc)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_external_fields_object) | in | External fields. |
Call graph