|
OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
|
An oscillating electromagnetic field. More...
#include <OscillatingField.h>


Public Types | |
| using | Mesh_t = Mesh_t< Dim > |
| using | Centering_t = Cell |
| using | Layout_t = FieldLayout< Dim > |
| using | BareField_t = BareField< T, Dim, ViewArgs... > |
| using | view_type = typename BareField_t::view_type |
| using | BConds_t = BConds< Field< T, Dim, Mesh_t< Dim >, Centering_t< Dim >, ViewArgs... >, Dim > |
| using | uniform_type = typename detail::CreateUniformType< base_type, typename view_type::uniform_type >::type |
| using | Domain_t = NDIndex< Dim > |
| Domain type specifying the index region. More... | |
| typedef view_type::memory_space | memory_space |
| typedef view_type::execution_space | execution_space |
| using | HostMirror = typename view_type::host_mirror_type |
| using | policy_type = typename RangePolicy< Dim, PolicyArgs... >::policy_type |
| using | halo_type = detail::HaloCells< T, Dim, ViewArgs... > |
| using | value_type = T |
Public Member Functions | |
| OscillatingField () | |
| Default constructor. More... | |
| virtual | ~OscillatingField () |
| virtual double | getFrequency () const |
| Return the RF frequency in Hz. More... | |
| virtual double | getPhase () const |
| Return the RF phase in rad. More... | |
| virtual void | setFrequency (double f) |
| Assign the RF frequency in Hz. More... | |
| virtual void | setPhase (double phi) |
| Assign the RF phase in rad. More... | |
| virtual EVector | Efield (const Point3D &point) const |
| Get field. More... | |
| virtual EVector | Efield (const Point3D &point, double time) const |
| Get field. More... | |
| virtual BVector | Bfield (const Point3D &point) const |
| Get field. More... | |
| virtual BVector | Bfield (const Point3D &point, double time) const |
| Get field. More... | |
| Field | deepCopy () const |
| void | initialize (Mesh_t &, Layout_t &, int nghost=1) |
| void | initialize (Layout_t &l, int nghost=1) |
| void | updateLayout (Layout_t &, int nghost=1) |
| void | setFieldBC (BConds_t &bc) |
| KOKKOS_INLINE_FUNCTION Mesh_t & | get_mesh () const |
| T | getVolumeIntegral () const |
| T | getVolumeAverage () const |
| BConds_t & | getFieldBC () |
| void | resize (Args... args) |
| detail::size_type | size (unsigned d) const |
| const Domain_t & | getOwned () const |
| const Domain_t | getAllocated () const |
| int | getNghost () const |
| void | fillHalo () |
| void | accumulateHalo () |
| void | accumulateHalo_noghost (int nghost=1) |
| auto & | getCommunicator () const |
| Layout_t & | getLayout () const |
| const Index & | getIndex (unsigned d) const |
| const NDIndex< Dim > & | getDomain () const |
| halo_type & | getHalo () |
| KOKKOS_INLINE_FUNCTION T | operator() (Args... args) const |
| view_type & | getView () |
| const view_type & | getView () const |
| HostMirror | getHostMirror () const |
| policy_type< execution_space, PolicyArgs... > | getFieldRangePolicy (const int nghost=0) const |
| void | write (std::ostream &out=std::cout) const |
| void | write (Inform &inf) const |
| T | sum (int nghost=0) const |
| T | max (int nghost=0) const |
| T | min (int nghost=0) const |
| T | prod (int nghost=0) const |
| KOKKOS_INLINE_FUNCTION auto | operator[] (size_t i) const |
Static Public Attributes | |
| static constexpr unsigned | dim |
Private Types | |
| using | base_type = Field< T, Dim, Mesh_t< Dim >, Centering_t< Dim >, Props... > |
Private Member Functions | |
| void | setup () |
Private Attributes | |
| double | frequency |
| double | phase |
| Mesh_t * | mesh_m |
| BConds_t | bc_m |
| int | nghost_m |
| Number of ghost layers on each field boundary. More... | |
| view_type | dview_m |
| Actual field data. More... | |
| Domain_t | owned_m |
| Domain of the data. More... | |
| halo_type | halo_m |
| Layout_t * | layout_m |
| How the arrays are laid out. More... | |
An oscillating electromagnetic field.
Definition at line 37 of file OscillatingField.h.
|
inherited |
|
privateinherited |
|
inherited |
|
inherited |
|
inherited |
Domain type specifying the index region.
Definition at line 47 of file BareField.h.
|
inherited |
Definition at line 52 of file BareField.h.
|
inherited |
Definition at line 57 of file BareField.h.
|
inherited |
Definition at line 53 of file BareField.h.
|
inherited |
|
inherited |
Definition at line 51 of file BareField.h.
|
inherited |
|
inherited |
Definition at line 55 of file BareField.h.
|
inherited |
|
inherited |
Definition at line 59 of file BareField.h.
|
inherited |
| OscillatingField< Field >::OscillatingField |
Default constructor.
Definition at line 87 of file OscillatingField.h.
|
virtual |
Definition at line 92 of file OscillatingField.h.
|
inherited |
Definition at line 128 of file BareField.hpp.
|
inherited |
Definition at line 129 of file BareField.hpp.
|
virtual |
Get field.
Definition at line 127 of file OscillatingField.h.
|
virtual |
Get field.
Definition at line 132 of file OscillatingField.h.
|
inherited |
|
virtual |
Get field.
Definition at line 117 of file OscillatingField.h.
|
virtual |
Get field.
Definition at line 122 of file OscillatingField.h.
|
inherited |
Definition at line 127 of file BareField.hpp.
|
inlineinherited |
|
inlineinherited |
Index domain of the allocated field.
Definition at line 123 of file BareField.h.
|
inlineinherited |
Definition at line 131 of file BareField.h.
|
inlineinherited |
Definition at line 140 of file BareField.h.
|
inlineinherited |
|
inlineinherited |
Generate the range policy for iterating over the field, excluding ghost layers
| PolicyArgs... | additional template parameters for the range policy |
| nghost | Number of ghost layers to include in the range policy (default 0) |
Definition at line 183 of file BareField.h.
|
inlinevirtual |
Return the RF frequency in Hz.
Definition at line 97 of file OscillatingField.h.
Referenced by RFCavityRep::getFrequency(), and TravelingWaveRep::getFrequency().
|
inlineinherited |
Definition at line 142 of file BareField.h.
|
inlineinherited |
Definition at line 173 of file BareField.h.
|
inlineinherited |
Definition at line 139 of file BareField.h.
|
inlineinherited |
Definition at line 134 of file BareField.h.
|
inlineinherited |
Definition at line 125 of file BareField.h.
|
inlineinherited |
Index domain of the local field.
Definition at line 117 of file BareField.h.
|
inlinevirtual |
Return the RF phase in rad.
Definition at line 102 of file OscillatingField.h.
Referenced by RFCavityRep::getPhase(), and TravelingWaveRep::getPhase().
|
inlineinherited |
Definition at line 169 of file BareField.h.
|
inlineinherited |
Definition at line 171 of file BareField.h.
|
inherited |
|
inherited |
|
inherited |
Initialize the field, if it was constructed from the default constructor. This should NOT be called if the field was constructed by providing a FieldLayout.
| l | of field |
| nghost | number of ghost layers |
Definition at line 101 of file BareField.hpp.
|
inherited |
|
inherited |
Definition at line 203 of file BareField.hpp.
|
inherited |
Definition at line 204 of file BareField.hpp.
|
inlineinherited |
Assign another field.
| Args... | variadic template to specify an access index for a view element. |
| args | view indices |
Definition at line 165 of file BareField.h.
|
inlineinherited |
Access single element of the expression
Definition at line 32 of file IpplExpressions.h.
|
inherited |
Definition at line 205 of file BareField.hpp.
|
inherited |
Dimension independent view resize function which calls Kokkos.
| Args... | variadic template specifying the individiual dimension arguments |
Definition at line 92 of file BareField.hpp.
|
inlineinherited |
|
inlinevirtual |
Assign the RF frequency in Hz.
Definition at line 107 of file OscillatingField.h.
Referenced by RFCavityRep::setFrequency(), and TravelingWaveRep::setFrequency().
|
inlinevirtual |
Assign the RF phase in rad.
Definition at line 112 of file OscillatingField.h.
Referenced by RFCavityRep::setPhase(), and TravelingWaveRep::setPhase().
|
privateinherited |
Allocate field.
Definition at line 222 of file BareField.hpp.
|
inlineinherited |
Local field size.
| d | the dimension |
Definition at line 111 of file BareField.h.
|
inherited |
Definition at line 202 of file BareField.hpp.
|
inherited |
|
inherited |
|
inherited |
|
privateinherited |
|
staticconstexprinherited |
Definition at line 60 of file BareField.h.
|
privateinherited |
Actual field data.
Definition at line 212 of file BareField.h.
|
private |
Definition at line 78 of file OscillatingField.h.
|
privateinherited |
Definition at line 217 of file BareField.h.
|
privateinherited |
How the arrays are laid out.
Definition at line 225 of file BareField.h.
|
privateinherited |
|
privateinherited |
Number of ghost layers on each field boundary.
Definition at line 209 of file BareField.h.
|
privateinherited |
Domain of the data.
Definition at line 215 of file BareField.h.
|
private |
Definition at line 79 of file OscillatingField.h.