|
Nektar++
|
#include <LaplacePhi.h>
Static Public Member Functions | |
| static EquationSystemSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
| Creates an instance of this class. | |
Static Public Attributes | |
| static std::string | className |
| Name of class. | |
Protected Member Functions | |
| LaplacePhi (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) | |
| ~LaplacePhi () override=default | |
| void | v_InitObject (bool DeclareFields=true) override |
| Initialisation object for EquationSystem. | |
| void | v_GenerateSummary (SolverUtils::SummaryList &s) override |
| Virtual function for generating summary information. | |
| void | v_DoSolve () override |
| Virtual function for solve implementation. | |
| void | v_DoInitialise (bool dumpInitialConditions=true) override |
| Virtual function for initialisation implementation. | |
Protected Member Functions inherited from Nektar::SolverUtils::EquationSystem | |
| SOLVER_UTILS_EXPORT | EquationSystem (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
| Initialises EquationSystem class members. | |
| virtual SOLVER_UTILS_EXPORT NekDouble | v_LinfError (unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray) |
| Virtual function for the L_inf error computation between fields and a given exact solution. | |
| virtual SOLVER_UTILS_EXPORT NekDouble | v_L2Error (unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray, bool Normalised=false) |
| Virtual function for the L_2 error computation between fields and a given exact solution. | |
| virtual SOLVER_UTILS_EXPORT NekDouble | v_H1Error (unsigned int field, const Array< OneD, NekDouble > &exactsoln=NullNekDouble1DArray, bool Normalised=false) |
| Virtual function for the H_1 error computation between fields and a given exact solution. | |
| virtual SOLVER_UTILS_EXPORT void | v_TransCoeffToPhys () |
| Virtual function for transformation to physical space. | |
| virtual SOLVER_UTILS_EXPORT void | v_TransPhysToCoeff () |
| Virtual function for transformation to coefficient space. | |
| virtual SOLVER_UTILS_EXPORT void | v_SetInitialConditions (NekDouble initialtime=0.0, bool dumpInitialConditions=true, const int domain=0) |
| virtual SOLVER_UTILS_EXPORT void | v_EvaluateExactSolution (unsigned int field, Array< OneD, NekDouble > &outfield, const NekDouble time) |
| virtual SOLVER_UTILS_EXPORT void | v_Output (void) |
| virtual SOLVER_UTILS_EXPORT MultiRegions::ExpListSharedPtr | v_GetPressure (void) |
| virtual SOLVER_UTILS_EXPORT bool | v_NegatedOp (void) |
| Virtual function to identify if operator is negated in DoSolve. | |
| virtual SOLVER_UTILS_EXPORT void | v_ExtraFldOutput (std::vector< Array< OneD, NekDouble > > &fieldcoeffs, std::vector< std::string > &variables) |
Protected Attributes | |
| StdRegions::ConstFactorMap | m_factors |
Protected Attributes inherited from Nektar::SolverUtils::EquationSystem | |
| LibUtilities::CommSharedPtr | m_comm |
| Communicator. | |
| bool | m_verbose |
| LibUtilities::SessionReaderSharedPtr | m_session |
| The session reader. | |
| std::map< std::string, SolverUtils::SessionFunctionSharedPtr > | m_sessionFunctions |
| Map of known SessionFunctions. | |
| LibUtilities::FieldIOSharedPtr | m_fld |
| Field input/output. | |
| Array< OneD, MultiRegions::ExpListSharedPtr > | m_fields |
| Array holding all dependent variables. | |
| SpatialDomains::BoundaryConditionsSharedPtr | m_boundaryConditions |
| Pointer to boundary conditions object. | |
| SpatialDomains::MeshGraphSharedPtr | m_graph |
| Pointer to graph defining mesh. | |
| std::string | m_sessionName |
| Name of the session. | |
| NekDouble | m_time |
| Current time of simulation. | |
| int | m_initialStep |
| Number of the step where the simulation should begin. | |
| NekDouble | m_fintime |
| Finish time of the simulation. | |
| NekDouble | m_timestep |
| Time step size. | |
| NekDouble | m_lambda |
| Lambda constant in real system if one required. | |
| NekDouble | m_checktime |
| Time between checkpoints. | |
| NekDouble | m_lastCheckTime |
| NekDouble | m_TimeIncrementFactor |
| int | m_nchk |
| Number of checkpoints written so far. | |
| int | m_steps |
| Number of steps to take. | |
| int | m_checksteps |
| Number of steps between checkpoints. | |
| int | m_infosteps |
| Number of time steps between outputting status information. | |
| int | m_iterPIT = 0 |
| Number of parallel-in-time time iteration. | |
| int | m_windowPIT = 0 |
| Index of windows for parallel-in-time time iteration. | |
| int | m_spacedim |
| Spatial dimension (>= expansion dim). | |
| int | m_expdim |
| Expansion dimension. | |
| bool | m_singleMode |
| Flag to determine if single homogeneous mode is used. | |
| bool | m_halfMode |
| Flag to determine if half homogeneous mode is used. | |
| bool | m_multipleModes |
| Flag to determine if use multiple homogenenous modes are used. | |
| bool | m_useFFT |
| Flag to determine if FFT is used for homogeneous transform. | |
| bool | m_homogen_dealiasing |
| Flag to determine if dealiasing is used for homogeneous simulations. | |
| bool | m_specHP_dealiasing |
| Flag to determine if dealisising is usde for the Spectral/hp element discretisation. | |
| enum MultiRegions::ProjectionType | m_projectionType |
| Type of projection; e.g continuous or discontinuous. | |
| Array< OneD, Array< OneD, NekDouble > > | m_traceNormals |
| Array holding trace normals for DG simulations in the forwards direction. | |
| Array< OneD, bool > | m_checkIfSystemSingular |
| Flag to indicate if the fields should be checked for singularity. | |
| LibUtilities::FieldMetaDataMap | m_fieldMetaDataMap |
| Map to identify relevant solver info to dump in output fields. | |
| Array< OneD, NekDouble > | m_movingFrameData |
| Moving reference frame status in the body frame X, Y, Z, Theta_x, Theta_y, Theta_z, [inertial] U, V, W, Omega_x, Omega_y, Omega_z, [body] A_x, A_y, A_z, DOmega_x, DOmega_y, DOmega_z, [body] pivot_x, pivot_y, pivot_z [body]. | |
| std::vector< std::string > | m_strFrameData |
| variable name in m_movingFrameData | |
| std::vector< bool > | m_movableDoFs |
| int | m_NumQuadPointsError |
| Number of Quadrature points used to work out the error. | |
| enum HomogeneousType | m_HomogeneousType |
| NekDouble | m_LhomX |
| physical length in X direction (if homogeneous) | |
| NekDouble | m_LhomY |
| physical length in Y direction (if homogeneous) | |
| NekDouble | m_LhomZ |
| physical length in Z direction (if homogeneous) | |
| int | m_npointsX |
| number of points in X direction (if homogeneous) | |
| int | m_npointsY |
| number of points in Y direction (if homogeneous) | |
| int | m_npointsZ |
| number of points in Z direction (if homogeneous) | |
| int | m_HomoDirec |
| number of homogenous directions | |
Private Member Functions | |
| Array< OneD, bool > | v_GetSystemSingularChecks () override |
| void | setUserDefinedBC (int n) |
| void | calculateAddedMass () |
Private Attributes | |
| Array< OneD, Array< OneD, NekDouble > > | m_boundValues |
| Array< OneD, NekDouble > | m_pivot |
Friends | |
| class | MemoryManager< LaplacePhi > |
| Class may only be instantiated through the MemoryManager. | |
Definition at line 44 of file LaplacePhi.h.
|
protected |
Definition at line 45 of file LaplacePhi.cpp.
References Nektar::StdRegions::eFactorLambda, Nektar::StdRegions::eFactorTau, and m_factors.
|
overrideprotecteddefault |
|
private |
Definition at line 203 of file LaplacePhi.cpp.
References m_boundValues, Nektar::SolverUtils::EquationSystem::m_fields, Nektar::SolverUtils::EquationSystem::m_session, Nektar::LibUtilities::ReduceMax, and Vmath::Vmul().
Referenced by v_DoSolve().
|
inlinestatic |
Creates an instance of this class.
Definition at line 51 of file LaplacePhi.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
private |
Definition at line 184 of file LaplacePhi.cpp.
References m_boundValues, Nektar::SolverUtils::EquationSystem::m_fields, and Nektar::SolverUtils::EquationSystem::m_session.
Referenced by v_DoSolve().
|
overrideprotectedvirtual |
Virtual function for initialisation implementation.
By default, nothing needs initialising at the EquationSystem level.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 159 of file LaplacePhi.cpp.
References Nektar::SolverUtils::EquationSystem::SetInitialConditions().
Virtual function for solve implementation.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 165 of file LaplacePhi.cpp.
References calculateAddedMass(), Nektar::SolverUtils::EquationSystem::GetTotPoints(), m_factors, Nektar::SolverUtils::EquationSystem::m_fields, and setUserDefinedBC().
|
overrideprotectedvirtual |
Virtual function for generating summary information.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 152 of file LaplacePhi.cpp.
References Nektar::SolverUtils::AddSummaryItem(), Nektar::StdRegions::eFactorLambda, m_factors, and Nektar::SolverUtils::EquationSystem::SessionSummary().
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 179 of file LaplacePhi.cpp.
References Nektar::SolverUtils::EquationSystem::m_session.
|
overrideprotectedvirtual |
Initialisation object for EquationSystem.
Continuous field
Setting up the normals
Setting up the normals
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 53 of file LaplacePhi.cpp.
References Nektar::ErrorUtil::efatal, m_boundValues, Nektar::SolverUtils::EquationSystem::m_fields, m_pivot, Nektar::SolverUtils::EquationSystem::m_session, Vmath::Neg(), NEKERROR, Vmath::Sadd(), Vmath::Smul(), Nektar::SolverUtils::EquationSystem::v_InitObject(), Vmath::Vvtvp(), and Vmath::Vvtvvtm().
|
friend |
Class may only be instantiated through the MemoryManager.
Definition at line 1 of file LaplacePhi.h.
|
static |
Name of class.
Definition at line 62 of file LaplacePhi.h.
Definition at line 81 of file LaplacePhi.h.
Referenced by calculateAddedMass(), setUserDefinedBC(), and v_InitObject().
|
protected |
Definition at line 65 of file LaplacePhi.h.
Referenced by LaplacePhi(), v_DoSolve(), and v_GenerateSummary().
Definition at line 82 of file LaplacePhi.h.
Referenced by v_InitObject().