Nektar++
|
Base class for unsteady solvers. More...
#include <UnsteadySystem.h>
Public Attributes | |
NekDouble | m_cflSafetyFactor |
CFL safety factor (comprise between 0 to 1). More... | |
NekDouble | m_cflNonAcoustic |
NekDouble | m_CFLGrowth |
CFL growth rate. More... | |
NekDouble | m_CFLEnd |
maximun cfl in cfl growth More... | |
Protected Member Functions | |
SOLVER_UTILS_EXPORT | UnsteadySystem (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
Initialises UnsteadySystem class members. More... | |
virtual SOLVER_UTILS_EXPORT void | v_InitObject () |
Init object for UnsteadySystem class. More... | |
SOLVER_UTILS_EXPORT NekDouble | MaxTimeStepEstimator () |
Get the maximum timestep estimator for cfl control. More... | |
virtual SOLVER_UTILS_EXPORT void | v_DoSolve () |
Solves an unsteady problem. More... | |
virtual SOLVER_UTILS_EXPORT void | v_DoInitialise () |
Sets up initial conditions. More... | |
virtual SOLVER_UTILS_EXPORT void | v_GenerateSummary (SummaryList &s) |
Print a summary of time stepping parameters. More... | |
virtual SOLVER_UTILS_EXPORT void | v_AppendOutput1D (Array< OneD, Array< OneD, NekDouble >> &solution1D) |
Print the solution at each solution point in a txt file. More... | |
virtual SOLVER_UTILS_EXPORT NekDouble | v_GetTimeStep (const Array< OneD, const Array< OneD, NekDouble >> &inarray) |
Return the timestep to be used for the next step in the time-marching loop. More... | |
virtual SOLVER_UTILS_EXPORT bool | v_PreIntegrate (int step) |
virtual SOLVER_UTILS_EXPORT bool | v_PostIntegrate (int step) |
virtual SOLVER_UTILS_EXPORT bool | v_RequireFwdTrans () |
virtual SOLVER_UTILS_EXPORT void | v_SteadyStateResidual (int step, Array< OneD, NekDouble > &L2) |
SOLVER_UTILS_EXPORT void | CheckForRestartTime (NekDouble &time, int &nchk) |
SOLVER_UTILS_EXPORT void | SVVVarDiffCoeff (const Array< OneD, Array< OneD, NekDouble >> vel, StdRegions::VarCoeffMap &varCoeffMap) |
Evaluate the SVV diffusion coefficient according to Moura's paper where it should proportional to h time velocity. More... | |
virtual SOLVER_UTILS_EXPORT bool | UpdateTimeStepCheck () |
![]() | |
SOLVER_UTILS_EXPORT | EquationSystem (const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph) |
Initialises EquationSystem class members. More... | |
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. More... | |
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. More... | |
virtual SOLVER_UTILS_EXPORT void | v_TransCoeffToPhys () |
Virtual function for transformation to physical space. More... | |
virtual SOLVER_UTILS_EXPORT void | v_TransPhysToCoeff () |
Virtual function for transformation to coefficient space. More... | |
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 void | v_ExtraFldOutput (std::vector< Array< OneD, NekDouble > > &fieldcoeffs, std::vector< std::string > &variables) |
Protected Attributes | |
int | m_infosteps |
Number of time steps between outputting status information. More... | |
int | m_abortSteps |
Number of steps between checks for abort conditions. More... | |
int | m_filtersInfosteps |
Number of time steps between outputting filters information. More... | |
int | m_nanSteps |
LibUtilities::TimeIntegrationSchemeSharedPtr | m_intScheme |
Wrapper to the time integration scheme. More... | |
LibUtilities::TimeIntegrationSchemeOperators | m_ode |
The time integration scheme operators to use. More... | |
NekDouble | m_epsilon |
bool | m_explicitDiffusion |
Indicates if explicit or implicit treatment of diffusion is used. More... | |
bool | m_explicitAdvection |
Indicates if explicit or implicit treatment of advection is used. More... | |
bool | m_explicitReaction |
Indicates if explicit or implicit treatment of reaction is used. More... | |
bool | m_homoInitialFwd |
Flag to determine if simulation should start in homogeneous forward transformed state. More... | |
NekDouble | m_steadyStateTol |
Tolerance to which steady state should be evaluated at. More... | |
int | m_steadyStateSteps |
Check for steady state at step interval. More... | |
NekDouble | m_steadyStateRes = 1.0 |
NekDouble | m_steadyStateRes0 = 1.0 |
Array< OneD, Array< OneD, NekDouble > > | m_previousSolution |
Storage for previous solution for steady-state check. More... | |
std::ofstream | m_errFile |
std::vector< int > | m_intVariables |
std::vector< std::pair< std::string, FilterSharedPtr > > | m_filters |
NekDouble | m_filterTimeWarning |
Number of time steps between outputting status information. More... | |
NekDouble | m_TimeIntegLambda =0.0 |
coefff of spacial derivatives(rhs or m_F in GLM) in calculating the residual of the whole equation(used in unsteady time integrations) More... | |
bool | m_flagImplicitItsStatistics |
bool | m_flagImplicitSolver = false |
Array< OneD, NekDouble > | m_magnitdEstimat |
estimate the magnitude of each conserved varibles More... | |
Array< OneD, NekDouble > | m_locTimeStep |
local time step(notice only for jfnk other see m_cflSafetyFactor) More... | |
NekDouble | m_inArrayNorm =-1.0 |
int | m_TotLinItePerStep =0 |
int | m_StagesPerStep =1 |
bool | m_flagUpdatePreconMat |
int | m_maxLinItePerNewton |
int | m_TotNewtonIts =0 |
int | m_TotLinIts =0 |
int | m_TotImpStages =0 |
bool | m_CalcPhysicalAV = true |
flag to update artificial viscosity More... | |
![]() | |
LibUtilities::CommSharedPtr | m_comm |
Communicator. More... | |
bool | m_verbose |
bool | m_root |
LibUtilities::SessionReaderSharedPtr | m_session |
The session reader. More... | |
std::map< std::string, SolverUtils::SessionFunctionSharedPtr > | m_sessionFunctions |
Map of known SessionFunctions. More... | |
LibUtilities::FieldIOSharedPtr | m_fld |
Field input/output. More... | |
Array< OneD, MultiRegions::ExpListSharedPtr > | m_fields |
Array holding all dependent variables. More... | |
SpatialDomains::BoundaryConditionsSharedPtr | m_boundaryConditions |
Pointer to boundary conditions object. More... | |
SpatialDomains::MeshGraphSharedPtr | m_graph |
Pointer to graph defining mesh. More... | |
std::string | m_sessionName |
Name of the session. More... | |
NekDouble | m_time |
Current time of simulation. More... | |
int | m_initialStep |
Number of the step where the simulation should begin. More... | |
NekDouble | m_fintime |
Finish time of the simulation. More... | |
NekDouble | m_timestep |
Time step size. More... | |
NekDouble | m_timestepMax = -1.0 |
Time step size. More... | |
NekDouble | m_lambda |
Lambda constant in real system if one required. More... | |
NekDouble | m_checktime |
Time between checkpoints. More... | |
NekDouble | m_lastCheckTime |
NekDouble | m_TimeIncrementFactor |
int | m_nchk |
Number of checkpoints written so far. More... | |
int | m_steps |
Number of steps to take. More... | |
int | m_checksteps |
Number of steps between checkpoints. More... | |
int | m_spacedim |
Spatial dimension (>= expansion dim). More... | |
int | m_expdim |
Expansion dimension. More... | |
bool | m_singleMode |
Flag to determine if single homogeneous mode is used. More... | |
bool | m_halfMode |
Flag to determine if half homogeneous mode is used. More... | |
bool | m_multipleModes |
Flag to determine if use multiple homogenenous modes are used. More... | |
bool | m_useFFT |
Flag to determine if FFT is used for homogeneous transform. More... | |
bool | m_homogen_dealiasing |
Flag to determine if dealiasing is used for homogeneous simulations. More... | |
bool | m_specHP_dealiasing |
Flag to determine if dealisising is usde for the Spectral/hp element discretisation. More... | |
enum MultiRegions::ProjectionType | m_projectionType |
Type of projection; e.g continuous or discontinuous. More... | |
Array< OneD, Array< OneD, NekDouble > > | m_traceNormals |
Array holding trace normals for DG simulations in the forwards direction. More... | |
Array< OneD, bool > | m_checkIfSystemSingular |
Flag to indicate if the fields should be checked for singularity. More... | |
LibUtilities::FieldMetaDataMap | m_fieldMetaDataMap |
Map to identify relevant solver info to dump in output fields. More... | |
int | m_NumQuadPointsError |
Number of Quadrature points used to work out the error. More... | |
enum HomogeneousType | m_HomogeneousType |
NekDouble | m_LhomX |
physical length in X direction (if homogeneous) More... | |
NekDouble | m_LhomY |
physical length in Y direction (if homogeneous) More... | |
NekDouble | m_LhomZ |
physical length in Z direction (if homogeneous) More... | |
int | m_npointsX |
number of points in X direction (if homogeneous) More... | |
int | m_npointsY |
number of points in Y direction (if homogeneous) More... | |
int | m_npointsZ |
number of points in Z direction (if homogeneous) More... | |
int | m_HomoDirec |
number of homogenous directions More... | |
Private Member Functions | |
void | InitializeSteadyState () |
bool | CheckSteadyState (int step) |
Calculate whether the system has reached a steady state by observing residuals to a user-defined tolerance. More... | |
bool | CheckSteadyState (int step, NekDouble totCPUTime) |
Additional Inherited Members | |
![]() | |
enum | HomogeneousType { eHomogeneous1D , eHomogeneous2D , eHomogeneous3D , eNotHomogeneous } |
Parameter for homogeneous expansions. More... | |
![]() | |
static std::string | equationSystemTypeLookupIds [] |
Base class for unsteady solvers.
Provides the underlying timestepping framework for unsteady solvers including the general timestepping routines. This class is not intended to be directly instantiated, but rather is a base class on which to define unsteady solvers.
For details on implementing unsteady solvers see sectionADRSolverModuleImplementation here
Definition at line 48 of file UnsteadySystem.h.
|
virtual |
Destructor.
Destructor for the class UnsteadyAdvection.
Definition at line 184 of file UnsteadySystem.cpp.
|
protected |
Initialises UnsteadySystem class members.
Processes SolverInfo parameters from the session file and sets up timestepping-specific code.
pSession | Session object to read parameters from. |
Definition at line 69 of file UnsteadySystem.cpp.
|
protected |
Definition at line 662 of file UnsteadySystem.cpp.
References Nektar::LibUtilities::FieldIO::CreateForFile(), Nektar::LibUtilities::eFunctionTypeFile, Nektar::SolverUtils::EquationSystem::m_fieldMetaDataMap, Nektar::SolverUtils::EquationSystem::m_fields, Nektar::SolverUtils::EquationSystem::m_session, Nektar::LibUtilities::NullFieldMetaDataMap, and Nektar::LibUtilities::PortablePath().
Referenced by v_DoInitialise().
|
private |
Calculate whether the system has reached a steady state by observing residuals to a user-defined tolerance.
Definition at line 839 of file UnsteadySystem.cpp.
Referenced by v_DoSolve().
|
private |
Definition at line 844 of file UnsteadySystem.cpp.
References CellMLToNektar.pycml::format, Nektar::SolverUtils::EquationSystem::GetTotPoints(), Nektar::SolverUtils::EquationSystem::m_comm, m_errFile, Nektar::SolverUtils::EquationSystem::m_fields, m_infosteps, Nektar::SolverUtils::EquationSystem::m_initialStep, m_previousSolution, Nektar::SolverUtils::EquationSystem::m_session, m_steadyStateRes, m_steadyStateRes0, m_steadyStateTol, Nektar::SolverUtils::EquationSystem::m_time, SteadyStateResidual(), Vmath::Vcopy(), and Vmath::Vmax().
NekDouble Nektar::SolverUtils::UnsteadySystem::GetTimeStep | ( | const Array< OneD, const Array< OneD, NekDouble >> & | inarray | ) |
Calculate the larger time-step mantaining the problem stable.
Return the timestep to be used for the next step in the time-marching loop.
This function can be overloaded to facilitate solver which utilise a CFL (or other) parameter to determine a maximum timestep under which the problem remains stable.
Definition at line 726 of file UnsteadySystem.cpp.
References v_GetTimeStep().
|
private |
Definition at line 799 of file UnsteadySystem.cpp.
References Nektar::SolverUtils::EquationSystem::m_comm, m_errFile, Nektar::SolverUtils::EquationSystem::m_fields, m_previousSolution, Nektar::SolverUtils::EquationSystem::m_session, m_steadyStateTol, and Vmath::Vcopy().
Referenced by v_DoInitialise().
|
protected |
Get the maximum timestep estimator for cfl control.
Returns the maximum time estimator for CFL control.
Definition at line 191 of file UnsteadySystem.cpp.
References m_intScheme.
Referenced by Nektar::CompressibleFlowSystem::GetElmtTimeStep().
|
inline |
Definition at line 58 of file UnsteadySystem.h.
References v_SteadyStateResidual().
Referenced by CheckSteadyState().
|
protected |
Evaluate the SVV diffusion coefficient according to Moura's paper where it should proportional to h time velocity.
Definition at line 758 of file UnsteadySystem.cpp.
References Nektar::StdRegions::eVarCoeffLaplacian, Nektar::SolverUtils::EquationSystem::m_fields, Vmath::Smul(), Vmath::Vmul(), Vmath::Vsqrt(), and Vmath::Vvtvp().
Referenced by Nektar::UnsteadyViscousBurgers::DoImplicitSolve(), and Nektar::UnsteadyViscousBurgers::v_InitObject().
|
inlineprotectedvirtual |
Reimplemented in Nektar::CFSImplicit.
Definition at line 205 of file UnsteadySystem.h.
Referenced by v_DoSolve().
|
protectedvirtual |
Print the solution at each solution point in a txt file.
Stores the solution in a file for 1D problems only. This method has been implemented to facilitate the post-processing for 1D problems.
Definition at line 641 of file UnsteadySystem.cpp.
References Nektar::SolverUtils::EquationSystem::GetNpoints(), and Nektar::SolverUtils::EquationSystem::m_fields.
Referenced by v_DoSolve().
Sets up initial conditions.
Sets the initial conditions.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Reimplemented in Nektar::VelocityCorrectionScheme, Nektar::VCSMapping, Nektar::CoupledLinearNS, Nektar::MMFSWE, and Nektar::PulseWaveSystem.
Definition at line 597 of file UnsteadySystem.cpp.
References CheckForRestartTime(), InitializeSteadyState(), Nektar::SolverUtils::EquationSystem::m_nchk, Nektar::SolverUtils::EquationSystem::m_time, Nektar::SolverUtils::EquationSystem::SetBoundaryConditions(), and Nektar::SolverUtils::EquationSystem::SetInitialConditions().
Referenced by Nektar::VCSMapping::v_DoInitialise(), and Nektar::VelocityCorrectionScheme::v_DoInitialise().
Solves an unsteady problem.
Initialises the time integration scheme (as specified in the session file), and perform the time integration.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Reimplemented in Nektar::CoupledLinearNS, Nektar::MMFSWE, Nektar::PulseWaveSystem, Nektar::MMFMaxwell, and Nektar::MMFAdvection.
Definition at line 200 of file UnsteadySystem.cpp.
References ASSERTL0, Nektar::SolverUtils::EquationSystem::Checkpoint_Output(), CheckSteadyState(), Nektar::SolverUtils::EquationSystem::eNotHomogeneous, Nektar::SolverUtils::EquationSystem::GetTimeStep(), Nektar::NekConstants::kNekZeroTol, m_abortSteps, m_CalcPhysicalAV, m_CFLEnd, m_CFLGrowth, m_cflSafetyFactor, Nektar::SolverUtils::EquationSystem::m_checksteps, Nektar::SolverUtils::EquationSystem::m_checktime, Nektar::SolverUtils::EquationSystem::m_comm, Nektar::SolverUtils::EquationSystem::m_fields, m_filters, m_filtersInfosteps, Nektar::SolverUtils::EquationSystem::m_fintime, m_flagImplicitItsStatistics, m_flagImplicitSolver, m_flagUpdatePreconMat, Nektar::SolverUtils::EquationSystem::m_HomogeneousType, m_homoInitialFwd, m_infosteps, Nektar::SolverUtils::EquationSystem::m_initialStep, m_intScheme, m_intVariables, Nektar::SolverUtils::EquationSystem::m_lastCheckTime, Nektar::SolverUtils::EquationSystem::m_nchk, m_ode, Nektar::SolverUtils::EquationSystem::m_session, Nektar::SolverUtils::EquationSystem::m_spacedim, m_StagesPerStep, m_steadyStateSteps, m_steadyStateTol, Nektar::SolverUtils::EquationSystem::m_steps, Nektar::SolverUtils::EquationSystem::m_time, Nektar::SolverUtils::EquationSystem::m_TimeIncrementFactor, Nektar::SolverUtils::EquationSystem::m_timestep, Nektar::SolverUtils::EquationSystem::m_timestepMax, m_TotImpStages, m_TotLinItePerStep, m_TotLinIts, m_TotNewtonIts, Vmath::Nnan(), Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::Timer::Start(), Nektar::LibUtilities::Timer::Stop(), Nektar::LibUtilities::Timer::TimePerTest(), UpdateTimeStepCheck(), v_AppendOutput1D(), v_PostIntegrate(), v_PreIntegrate(), and v_RequireFwdTrans().
Referenced by Nektar::CoupledLinearNS::v_DoSolve().
|
protectedvirtual |
Print a summary of time stepping parameters.
Prints a summary with some information regards the time-stepping.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Reimplemented in Nektar::Monodomain, Nektar::BidomainRoth, Nektar::Bidomain, Nektar::UnsteadyDiffusion, Nektar::CFLtester, Nektar::SolverUtils::MMFSystem, Nektar::ShallowWaterSystem, Nektar::NonlinearSWE, Nektar::NonlinearPeregrine, Nektar::MMFSWE, Nektar::LinearSWE, Nektar::PulseWavePropagation, Nektar::MMFMaxwell, Nektar::VCSWeakPressure, Nektar::VelocityCorrectionScheme, Nektar::SmoothedProfileMethod, Nektar::CoupledLinearNS, Nektar::ImageWarpingSystem, Nektar::MMFDiffusion, Nektar::RinglebFlow, Nektar::IsentropicVortex, Nektar::UnsteadyViscousBurgers, Nektar::UnsteadyAdvectionDiffusion, Nektar::UnsteadyAdvection, and Nektar::MMFAdvection.
Definition at line 609 of file UnsteadySystem.cpp.
References Nektar::SolverUtils::AddSummaryItem(), Nektar::SolverUtils::EquationSystem::m_checksteps, m_explicitAdvection, m_explicitDiffusion, m_explicitReaction, m_intScheme, Nektar::SolverUtils::EquationSystem::m_session, Nektar::SolverUtils::EquationSystem::m_steps, Nektar::SolverUtils::EquationSystem::m_timestep, and Nektar::SolverUtils::EquationSystem::v_GenerateSummary().
Referenced by Nektar::UnsteadyAdvection::v_GenerateSummary(), Nektar::UnsteadyAdvectionDiffusion::v_GenerateSummary(), Nektar::UnsteadyViscousBurgers::v_GenerateSummary(), Nektar::IsentropicVortex::v_GenerateSummary(), Nektar::RinglebFlow::v_GenerateSummary(), Nektar::ImageWarpingSystem::v_GenerateSummary(), Nektar::VelocityCorrectionScheme::v_GenerateSummary(), Nektar::VCSWeakPressure::v_GenerateSummary(), Nektar::PulseWavePropagation::v_GenerateSummary(), Nektar::ShallowWaterSystem::v_GenerateSummary(), Nektar::SolverUtils::MMFSystem::v_GenerateSummary(), Nektar::CFLtester::v_GenerateSummary(), Nektar::UnsteadyDiffusion::v_GenerateSummary(), Nektar::Bidomain::v_GenerateSummary(), Nektar::BidomainRoth::v_GenerateSummary(), and Nektar::Monodomain::v_GenerateSummary().
|
protectedvirtual |
Return the timestep to be used for the next step in the time-marching loop.
Definition at line 738 of file UnsteadySystem.cpp.
References Nektar::ErrorUtil::efatal, and NEKERROR.
Referenced by GetTimeStep().
|
protectedvirtual |
Init object for UnsteadySystem class.
Initialization object for UnsteadySystem class.
Reimplemented from Nektar::SolverUtils::EquationSystem.
Reimplemented in Nektar::ShallowWaterSystem, Nektar::NonlinearSWE, Nektar::NonlinearPeregrine, Nektar::MMFSWE, Nektar::LinearSWE, Nektar::PulseWaveSystemOutput, Nektar::PulseWaveSystem, Nektar::PulseWavePropagation, Nektar::MMFMaxwell, Nektar::VelocityCorrectionScheme, Nektar::VCSMapping, Nektar::SmoothedProfileMethod, Nektar::IncNavierStokes, Nektar::CoupledLinearNS, Nektar::ImageWarpingSystem, Nektar::Dummy, Nektar::MMFDiffusion, Nektar::NavierStokesImplicitCFE, Nektar::NavierStokesCFEAxisym, Nektar::NavierStokesCFE, Nektar::EulerImplicitCFE, Nektar::EulerCFE, Nektar::CFSImplicit, Nektar::CompressibleFlowSystem, Nektar::Monodomain, Nektar::BidomainRoth, Nektar::Bidomain, Nektar::UnsteadyViscousBurgers, Nektar::UnsteadyReactionDiffusion, Nektar::UnsteadyInviscidBurger, Nektar::UnsteadyDiffusion, Nektar::UnsteadyAdvectionDiffusion, Nektar::UnsteadyAdvection, Nektar::MMFAdvection, Nektar::CFLtester, Nektar::LEE, Nektar::APE, Nektar::AcousticSystem, and Nektar::SolverUtils::AdvectionSystem.
Definition at line 81 of file UnsteadySystem.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::LibUtilities::TimeIntScheme::freeParams, Nektar::SolverUtils::GetFilterFactory(), Nektar::LibUtilities::GetTimeIntegrationSchemeFactory(), m_abortSteps, m_CFLEnd, m_CFLGrowth, m_cflSafetyFactor, m_explicitAdvection, m_explicitDiffusion, m_explicitReaction, Nektar::SolverUtils::EquationSystem::m_fieldMetaDataMap, m_filters, m_filtersInfosteps, m_filterTimeWarning, Nektar::SolverUtils::EquationSystem::m_fintime, m_flagImplicitItsStatistics, m_homoInitialFwd, m_infosteps, Nektar::SolverUtils::EquationSystem::m_initialStep, m_intScheme, Nektar::SolverUtils::EquationSystem::m_session, m_steadyStateSteps, m_steadyStateTol, Nektar::SolverUtils::EquationSystem::m_steps, Nektar::SolverUtils::EquationSystem::m_time, Nektar::SolverUtils::EquationSystem::m_timestep, Nektar::LibUtilities::TimeIntScheme::method, Nektar::LibUtilities::TimeIntScheme::order, Nektar::SolverUtils::EquationSystem::v_InitObject(), and Nektar::LibUtilities::TimeIntScheme::variant.
Referenced by Nektar::SolverUtils::AdvectionSystem::v_InitObject(), Nektar::MMFAdvection::v_InitObject(), Nektar::UnsteadyDiffusion::v_InitObject(), Nektar::UnsteadyReactionDiffusion::v_InitObject(), Nektar::Bidomain::v_InitObject(), Nektar::BidomainRoth::v_InitObject(), Nektar::Monodomain::v_InitObject(), Nektar::MMFDiffusion::v_InitObject(), Nektar::Dummy::v_InitObject(), Nektar::MMFMaxwell::v_InitObject(), Nektar::PulseWaveSystem::v_InitObject(), Nektar::MMFSWE::v_InitObject(), and Nektar::ShallowWaterSystem::v_InitObject().
|
protectedvirtual |
Reimplemented in Nektar::VelocityCorrectionScheme, Nektar::Dummy, and Nektar::SolverUtils::AdvectionSystem.
Definition at line 752 of file UnsteadySystem.cpp.
Referenced by v_DoSolve(), Nektar::SolverUtils::AdvectionSystem::v_PostIntegrate(), and Nektar::Dummy::v_PostIntegrate().
|
protectedvirtual |
Reimplemented in Nektar::IncNavierStokes, Nektar::Dummy, Nektar::UnsteadyAdvectionDiffusion, and Nektar::AcousticSystem.
Definition at line 746 of file UnsteadySystem.cpp.
Referenced by v_DoSolve(), Nektar::AcousticSystem::v_PreIntegrate(), and Nektar::Dummy::v_PreIntegrate().
|
inlineprotectedvirtual |
Reimplemented in Nektar::VelocityCorrectionScheme, and Nektar::Dummy.
Definition at line 177 of file UnsteadySystem.h.
Referenced by v_DoSolve().
|
protectedvirtual |
Reimplemented in Nektar::CompressibleFlowSystem.
Definition at line 900 of file UnsteadySystem.cpp.
References Nektar::SolverUtils::EquationSystem::GetTotPoints(), Nektar::SolverUtils::EquationSystem::m_comm, Nektar::SolverUtils::EquationSystem::m_fields, m_previousSolution, Nektar::LibUtilities::ReduceSum, tinysimd::sqrt(), Vmath::Vmul(), Vmath::Vsub(), and Vmath::Vsum().
Referenced by SteadyStateResidual().
|
protected |
Number of steps between checks for abort conditions.
Definition at line 77 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
flag to update artificial viscosity
Definition at line 144 of file UnsteadySystem.h.
Referenced by Nektar::NavierStokesCFE::v_DoDiffusion(), Nektar::NavierStokesImplicitCFE::v_DoDiffusionCoeff(), v_DoSolve(), Nektar::NavierStokesCFE::v_GetViscousFluxVector(), and Nektar::NavierStokesCFE::v_GetViscousFluxVectorDeAlias().
NekDouble Nektar::SolverUtils::UnsteadySystem::m_CFLEnd |
maximun cfl in cfl growth
Definition at line 71 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and v_InitObject().
NekDouble Nektar::SolverUtils::UnsteadySystem::m_CFLGrowth |
CFL growth rate.
Definition at line 69 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and v_InitObject().
NekDouble Nektar::SolverUtils::UnsteadySystem::m_cflNonAcoustic |
Definition at line 67 of file UnsteadySystem.h.
Referenced by Nektar::CompressibleFlowSystem::v_GetTimeStep().
NekDouble Nektar::SolverUtils::UnsteadySystem::m_cflSafetyFactor |
CFL safety factor (comprise between 0 to 1).
Definition at line 66 of file UnsteadySystem.h.
Referenced by Nektar::CompressibleFlowSystem::GetElmtTimeStep(), Nektar::CompressibleFlowSystem::InitialiseParameters(), v_DoSolve(), Nektar::MMFAdvection::v_DoSolve(), Nektar::MMFSWE::v_DoSolve(), and v_InitObject().
|
protected |
Definition at line 86 of file UnsteadySystem.h.
|
protected |
Definition at line 107 of file UnsteadySystem.h.
Referenced by CheckSteadyState(), and InitializeSteadyState().
|
protected |
Indicates if explicit or implicit treatment of advection is used.
Definition at line 90 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::UpdateTimeStepCheck(), v_GenerateSummary(), v_InitObject(), Nektar::APE::v_InitObject(), Nektar::LEE::v_InitObject(), Nektar::CFLtester::v_InitObject(), Nektar::MMFAdvection::v_InitObject(), Nektar::UnsteadyAdvection::v_InitObject(), Nektar::UnsteadyInviscidBurger::v_InitObject(), Nektar::CFSImplicit::v_InitObject(), Nektar::ImageWarpingSystem::v_InitObject(), Nektar::MMFMaxwell::v_InitObject(), Nektar::PulseWavePropagation::v_InitObject(), Nektar::LinearSWE::v_InitObject(), Nektar::MMFSWE::v_InitObject(), Nektar::NonlinearPeregrine::v_InitObject(), and Nektar::NonlinearSWE::v_InitObject().
|
protected |
Indicates if explicit or implicit treatment of diffusion is used.
Definition at line 88 of file UnsteadySystem.h.
Referenced by Nektar::UnsteadyAdvectionDiffusion::DoOdeRhs(), v_GenerateSummary(), Nektar::NavierStokesCFE::v_GetViscousFluxVector(), Nektar::NavierStokesCFE::v_GetViscousFluxVectorDeAlias(), v_InitObject(), Nektar::UnsteadyAdvectionDiffusion::v_InitObject(), Nektar::UnsteadyDiffusion::v_InitObject(), Nektar::UnsteadyViscousBurgers::v_InitObject(), Nektar::Bidomain::v_InitObject(), Nektar::BidomainRoth::v_InitObject(), Nektar::Monodomain::v_InitObject(), Nektar::CFSImplicit::v_InitObject(), Nektar::MMFDiffusion::v_InitObject(), and Nektar::VelocityCorrectionScheme::v_InitObject().
|
protected |
Indicates if explicit or implicit treatment of reaction is used.
Definition at line 92 of file UnsteadySystem.h.
Referenced by v_GenerateSummary(), and v_InitObject().
|
protected |
Definition at line 111 of file UnsteadySystem.h.
Referenced by v_DoSolve(), v_InitObject(), Nektar::Bidomain::v_InitObject(), Nektar::BidomainRoth::v_InitObject(), Nektar::Monodomain::v_InitObject(), and Nektar::SmoothedProfileMethod::v_SolveUnsteadyStokesSystem().
|
protected |
Number of time steps between outputting filters information.
Definition at line 79 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
Number of time steps between outputting status information.
Definition at line 114 of file UnsteadySystem.h.
Referenced by v_InitObject().
|
protected |
Definition at line 119 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
Definition at line 120 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and Nektar::CFSImplicit::v_InitObject().
|
protected |
Definition at line 135 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::PreconCoeff(), and v_DoSolve().
|
protected |
Flag to determine if simulation should start in homogeneous forward transformed state.
Definition at line 95 of file UnsteadySystem.h.
Referenced by v_DoSolve(), v_InitObject(), Nektar::AcousticSystem::v_InitObject(), Nektar::CFLtester::v_InitObject(), Nektar::UnsteadyAdvection::v_InitObject(), Nektar::UnsteadyAdvectionDiffusion::v_InitObject(), Nektar::UnsteadyDiffusion::v_InitObject(), Nektar::UnsteadyViscousBurgers::v_InitObject(), and Nektar::CompressibleFlowSystem::v_InitObject().
|
protected |
Definition at line 128 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::CalcRefValues(), Nektar::CFSImplicit::DoImplicitSolveCoeff(), and Nektar::CFSImplicit::MatrixMultiplyMatrixFreeCoeff().
|
protected |
Number of time steps between outputting status information.
Definition at line 75 of file UnsteadySystem.h.
Referenced by CheckSteadyState(), v_DoSolve(), Nektar::MMFAdvection::v_DoSolve(), Nektar::MMFMaxwell::v_DoSolve(), Nektar::PulseWaveSystem::v_DoSolve(), Nektar::MMFSWE::v_DoSolve(), v_InitObject(), and Nektar::ShallowWaterSystem::v_InitObject().
|
protected |
Wrapper to the time integration scheme.
Definition at line 82 of file UnsteadySystem.h.
Referenced by MaxTimeStepEstimator(), Nektar::VelocityCorrectionScheme::SetUpExtrapolation(), Nektar::UnsteadyAdvectionDiffusion::SubStepAdvance(), v_DoSolve(), Nektar::MMFAdvection::v_DoSolve(), Nektar::MMFMaxwell::v_DoSolve(), Nektar::PulseWaveSystem::v_DoSolve(), Nektar::MMFSWE::v_DoSolve(), v_GenerateSummary(), v_InitObject(), Nektar::UnsteadyAdvectionDiffusion::v_InitObject(), Nektar::UnsteadyReactionDiffusion::v_InitObject(), and Nektar::VCSMapping::v_InitObject().
|
protected |
Definition at line 109 of file UnsteadySystem.h.
Referenced by v_DoSolve(), Nektar::MMFAdvection::v_DoSolve(), Nektar::MMFMaxwell::v_DoSolve(), Nektar::MMFSWE::v_DoSolve(), Nektar::Bidomain::v_InitObject(), Nektar::BidomainRoth::v_InitObject(), Nektar::Monodomain::v_InitObject(), Nektar::Dummy::v_InitObject(), Nektar::ImageWarpingSystem::v_InitObject(), and Nektar::VelocityCorrectionScheme::v_InitObject().
local time step(notice only for jfnk other see m_cflSafetyFactor)
Definition at line 126 of file UnsteadySystem.h.
estimate the magnitude of each conserved varibles
Definition at line 123 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::CalcRefValues(), and Nektar::CFSImplicit::NumCalcRiemFluxJac().
|
protected |
Definition at line 137 of file UnsteadySystem.h.
|
protected |
Definition at line 80 of file UnsteadySystem.h.
Referenced by Nektar::Dummy::v_InitObject().
|
protected |
The time integration scheme operators to use.
Definition at line 84 of file UnsteadySystem.h.
Referenced by Nektar::CoupledLinearNS::v_DoInitialise(), v_DoSolve(), Nektar::MMFAdvection::v_DoSolve(), Nektar::MMFMaxwell::v_DoSolve(), Nektar::PulseWaveSystem::v_DoSolve(), Nektar::MMFSWE::v_DoSolve(), Nektar::APE::v_InitObject(), Nektar::LEE::v_InitObject(), Nektar::CFLtester::v_InitObject(), Nektar::MMFAdvection::v_InitObject(), Nektar::UnsteadyAdvection::v_InitObject(), Nektar::UnsteadyAdvectionDiffusion::v_InitObject(), Nektar::UnsteadyDiffusion::v_InitObject(), Nektar::UnsteadyInviscidBurger::v_InitObject(), Nektar::UnsteadyReactionDiffusion::v_InitObject(), Nektar::UnsteadyViscousBurgers::v_InitObject(), Nektar::Bidomain::v_InitObject(), Nektar::BidomainRoth::v_InitObject(), Nektar::Monodomain::v_InitObject(), Nektar::CompressibleFlowSystem::v_InitObject(), Nektar::CFSImplicit::v_InitObject(), Nektar::MMFDiffusion::v_InitObject(), Nektar::Dummy::v_InitObject(), Nektar::ImageWarpingSystem::v_InitObject(), Nektar::SmoothedProfileMethod::v_InitObject(), Nektar::VelocityCorrectionScheme::v_InitObject(), Nektar::MMFMaxwell::v_InitObject(), Nektar::PulseWavePropagation::v_InitObject(), Nektar::LinearSWE::v_InitObject(), Nektar::MMFSWE::v_InitObject(), Nektar::NonlinearPeregrine::v_InitObject(), and Nektar::NonlinearSWE::v_InitObject().
|
protected |
Storage for previous solution for steady-state check.
Definition at line 105 of file UnsteadySystem.h.
Referenced by CheckSteadyState(), InitializeSteadyState(), and v_SteadyStateResidual().
|
protected |
Definition at line 131 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::DoImplicitSolveCoeff(), and v_DoSolve().
|
protected |
Definition at line 101 of file UnsteadySystem.h.
Referenced by CheckSteadyState().
|
protected |
Definition at line 102 of file UnsteadySystem.h.
Referenced by CheckSteadyState().
|
protected |
Check for steady state at step interval.
Definition at line 100 of file UnsteadySystem.h.
Referenced by v_DoSolve(), and v_InitObject().
|
protected |
Tolerance to which steady state should be evaluated at.
Definition at line 98 of file UnsteadySystem.h.
Referenced by CheckSteadyState(), InitializeSteadyState(), v_DoSolve(), and v_InitObject().
|
protected |
coefff of spacial derivatives(rhs or m_F in GLM) in calculating the residual of the whole equation(used in unsteady time integrations)
Definition at line 117 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::CalcPreconMatBRJCoeff(), Nektar::CFSImplicit::DoImplicitSolveCoeff(), Nektar::CFSImplicit::NonlinSysEvaluatorCoeff(), Nektar::CFSImplicit::PreconCoeff(), and Nektar::CFSImplicit::UpdateTimeStepCheck().
|
protected |
Definition at line 141 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::DoImplicitSolveCoeff(), and v_DoSolve().
|
protected |
Definition at line 130 of file UnsteadySystem.h.
Referenced by v_DoSolve().
|
protected |
Definition at line 140 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::DoImplicitSolveCoeff(), and v_DoSolve().
|
protected |
Definition at line 139 of file UnsteadySystem.h.
Referenced by Nektar::CFSImplicit::DoImplicitSolveCoeff(), and v_DoSolve().