|
Nektar++
|
#include <ForcingLorentz.h>
Static Public Member Functions | |
| static ForcingSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const LibUtilities::SessionNode &pForce) |
| Creates an instance of this class. | |
Static Public Member Functions inherited from Nektar::SolverUtils::Forcing | |
| static SOLVER_UTILS_EXPORT std::vector< ForcingSharedPtr > | Load (const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields=0) |
Static Public Attributes | |
| static std::string | classNameBody |
| Name of the class. | |
Private Member Functions | |
| ForcingLorentz (const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation) | |
| ~ForcingLorentz (void) override | |
Private Attributes | |
| Array< OneD, Array< OneD, NekDouble > > | m_Efield |
| Array< OneD, NekDouble > | m_E0 |
| Array< OneD, NekDouble > | m_B0 |
| NekDouble | m_sigma |
| NekDouble | m_damping |
| bool | m_implicitDamping |
| int | m_spacedim |
| VelocityCorrectionSchemeSharedPtr | m_FluidEq |
Friends | |
| class | MemoryManager< ForcingLorentz > |
Additional Inherited Members | |
Public Member Functions inherited from Nektar::SolverUtils::Forcing | |
| SOLVER_UTILS_EXPORT void | InitObject (const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const LibUtilities::SessionNode &pForce) |
| Initialise the forcing object. | |
| SOLVER_UTILS_EXPORT void | Apply (const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time) |
| Apply the forcing. | |
| SOLVER_UTILS_EXPORT void | PreApply (const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time) |
| Change the advection velocity before applying the forcing. For example, subtracting the frame velocity from the advection velocity in the MovingRefercenceFrame. | |
| SOLVER_UTILS_EXPORT void | ApplyCoeff (const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time) |
| Apply the forcing. | |
| SOLVER_UTILS_EXPORT const Array< OneD, const Array< OneD, NekDouble > > & | GetForces () |
| SOLVER_UTILS_EXPORT Array< OneD, Array< OneD, NekDouble > > & | UpdateForces () |
Protected Attributes inherited from Nektar::SolverUtils::Forcing | |
| LibUtilities::SessionReaderSharedPtr | m_session |
| Session reader. | |
| const std::weak_ptr< EquationSystem > | m_equ |
| Weak pointer to equation system using this forcing. | |
| Array< OneD, Array< OneD, NekDouble > > | m_Forcing |
| Evaluated forcing function. | |
| int | m_NumVariable |
| Number of variables. | |
| std::map< std::string, SolverUtils::SessionFunctionSharedPtr > | m_sessionFunctions |
| Map of known SessionFunctions. | |
Definition at line 48 of file ForcingLorentz.h.
|
private |
| pSession | |
| pEquation |
Definition at line 52 of file ForcingLorentz.cpp.
|
overrideprivate |
Definition at line 59 of file ForcingLorentz.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 55 of file ForcingLorentz.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and Nektar::SolverUtils::ForcingSharedPtr.
|
overrideprotectedvirtual |
Adds the body force, -Omega X u.
| fields | |
| inarray | |
| outarray | |
| time |
Implements Nektar::SolverUtils::Forcing.
Definition at line 148 of file ForcingLorentz.cpp.
References m_B0, m_damping, m_E0, m_Efield, m_FluidEq, m_implicitDamping, m_sigma, m_spacedim, Vmath::Sadd(), Vmath::Smul(), Vmath::Svtsvtp(), and Vmath::Svtvp().
|
overrideprotectedvirtual |
Initialise the forcing module.
| pFields | |
| pNumForcingFields | |
| pForce |
Implements Nektar::SolverUtils::Forcing.
Definition at line 69 of file ForcingLorentz.cpp.
References ASSERTL0, Nektar::LibUtilities::SessionNode::DefinesChild(), Nektar::LibUtilities::SessionNode::GetValue(), Nektar::StringUtils::IEquals(), m_B0, m_damping, m_E0, m_Efield, Nektar::SolverUtils::Forcing::m_equ, m_FluidEq, m_implicitDamping, Nektar::SolverUtils::Forcing::m_session, m_sigma, and m_spacedim.
|
friend |
Definition at line 1 of file ForcingLorentz.h.
|
static |
Name of the class.
Definition at line 69 of file ForcingLorentz.h.
Definition at line 93 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
|
private |
Definition at line 97 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
Definition at line 91 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
Definition at line 89 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
|
private |
Definition at line 101 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
|
private |
Definition at line 99 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
|
private |
Definition at line 95 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().
|
private |
Definition at line 100 of file ForcingLorentz.h.
Referenced by v_Apply(), and v_InitObject().