|
Nektar++
|
#include <SteadyADR.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 | className1 |
| Name of class. | |
| static std::string | className2 |
| static std::string | className3 |
Protected Member Functions | |
| SteadyADR (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) | |
| ~SteadyADR () override=default | |
| void | v_InitObject (bool declareExpansionLists=true) override |
| Initialisation object for the SteadyADR problem. | |
| void | v_DoSolve () override |
| Solves SteadyADR problem. | |
| void | v_GenerateSummary (SummaryList &s) override |
| Virtual function for generating summary information. | |
| void | LoadSessionParameters () |
| void | v_InitialiseFields () override |
| void | SetAdvectionVel () |
| void | SetDiffusionCoeff () |
| Set the diffusion Coeff. the diff. coeff., diffCoeff_{ij} := \epslion * D_{ij} where, \epslion is scalar part D_{ij} is a 2D tensor for enforcing anisotropy Note, it is assumed that, diffCoeff_{ij} = diffCoeff_{ji}. | |
| void | v_InitialiseOperators () override |
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 void | v_DoInitialise (bool dumpInitialConditions=true) |
| Virtual function for initialisation implementation. | |
| 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 | |
| double | m_epsilon |
| double | m_lambda |
| std::vector< double > | m_diffCoeff |
| LibUtilities::Field< double, FieldState::Phys > | m_varDiffCoeff |
| SessionFunctionSharedPtr | m_varDiffCoeffFunction |
| LibUtilities::Field< double, FieldState::Phys > | m_fce |
| LibUtilities::Field< double, FieldState::Phys > | m_advectionVel |
| std::shared_ptr< BwdTransOp< double > > | m_bwdTransOp |
| std::shared_ptr< LinearSystemOp< double > > | m_linearSystemOp |
| std::shared_ptr< LinearSolverOp< double > > | m_linearSolverOp |
| std::shared_ptr< PreconOp< double > > | m_preconOp |
| std::vector< ForcingSharedPtr > | m_forcing |
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 | |
Friends | |
| class | MemoryManager< SteadyADR > |
Definition at line 59 of file SteadyADR.h.
|
protected |
Definition at line 60 of file SteadyADR.cpp.
References ASSERTL0, Nektar::MultiRegions::eGalerkin, and Nektar::SolverUtils::EquationSystem::m_projectionType.
|
overrideprotecteddefault |
|
inlinestatic |
Creates an instance of this class.
Definition at line 65 of file SteadyADR.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protected |
Definition at line 127 of file SteadyADR.cpp.
Referenced by v_InitObject().
|
protected |
Definition at line 177 of file SteadyADR.cpp.
References Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), m_fce, and Nektar::SolverUtils::EquationSystem::m_npointsZ.
Referenced by v_InitObject().
|
protected |
Set the diffusion Coeff. the diff. coeff., diffCoeff_{ij} := \epslion * D_{ij} where, \epslion is scalar part D_{ij} is a 2D tensor for enforcing anisotropy Note, it is assumed that, diffCoeff_{ij} = diffCoeff_{ji}.
Let, Vec be a Vector<double> storing a flatten \diffCoeff_{ij}, then Case 1: For 1D Vec[0] = D_{00} Case 2: For 2D Vec[0] = D_{00} Vec[1] = D_{01} Vec[2] = D_{11} Case 3: For 3D Vec[0] = D_{00} Vec[1] = D_{01} Vec[2] = D_{11} Vec[3] = D_{02} Vec[4] = D_{12} Vec[5] = D_{22}
Definition at line 228 of file SteadyADR.cpp.
References Nektar::MultiRegions::GetBlockAttributes< double, FieldState::Phys >(), m_diffCoeff, m_epsilon, Nektar::SolverUtils::EquationSystem::m_npointsZ, Nektar::SolverUtils::EquationSystem::m_session, Nektar::SolverUtils::EquationSystem::m_time, m_varDiffCoeff, and m_varDiffCoeffFunction.
Referenced by v_InitObject().
Solves SteadyADR problem.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 96 of file SteadyADR.cpp.
References m_bwdTransOp, m_fce, m_forcing, m_linearSystemOp, and Nektar::SolverUtils::EquationSystem::m_time.
|
overrideprotectedvirtual |
Virtual function for generating summary information.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 117 of file SteadyADR.cpp.
References Nektar::SolverUtils::AddSummaryItem(), and Nektar::SolverUtils::EquationSystem::v_GenerateSummary().
|
overrideprotected |
Definition at line 163 of file SteadyADR.cpp.
References m_diffCoeff, and Nektar::SolverUtils::EquationSystem::m_session.
Referenced by v_InitObject().
|
overrideprotected |
Definition at line 277 of file SteadyADR.cpp.
References m_diffCoeff, and m_epsilon.
Referenced by v_InitObject().
Initialisation object for the SteadyADR problem.
Load parameters from session
Create Fields for solution m_phys, m_coeff and others
Reimplemented from Nektar::SolverUtils::EquationSystem.
Definition at line 72 of file SteadyADR.cpp.
References LoadSessionParameters(), SetAdvectionVel(), SetDiffusionCoeff(), v_InitialiseFields(), v_InitialiseOperators(), and Nektar::SolverUtils::EquationSystem::v_InitObject().
|
friend |
Definition at line 1 of file SteadyADR.h.
|
static |
Name of class.
Definition at line 76 of file SteadyADR.h.
|
static |
Definition at line 77 of file SteadyADR.h.
|
static |
Definition at line 78 of file SteadyADR.h.
|
protected |
Definition at line 91 of file SteadyADR.h.
|
protected |
Definition at line 94 of file SteadyADR.h.
Referenced by v_DoSolve().
|
protected |
Definition at line 84 of file SteadyADR.h.
Referenced by SetDiffusionCoeff(), v_InitialiseFields(), and v_InitialiseOperators().
|
protected |
Definition at line 82 of file SteadyADR.h.
Referenced by SetDiffusionCoeff(), and v_InitialiseOperators().
|
protected |
Definition at line 90 of file SteadyADR.h.
Referenced by SetAdvectionVel(), and v_DoSolve().
|
protected |
Definition at line 98 of file SteadyADR.h.
Referenced by v_DoSolve().
|
protected |
Definition at line 83 of file SteadyADR.h.
|
protected |
Definition at line 96 of file SteadyADR.h.
|
protected |
Definition at line 95 of file SteadyADR.h.
Referenced by v_DoSolve().
|
protected |
Definition at line 97 of file SteadyADR.h.
|
protected |
Definition at line 86 of file SteadyADR.h.
Referenced by SetDiffusionCoeff().
|
protected |
Definition at line 87 of file SteadyADR.h.
Referenced by SetDiffusionCoeff().