38 namespace SolverUtils {
91 std::cout <<
"CFL (zero plane): ";
93 std::cout << cfl <<
" (in elmt " << elmtid <<
")" << std::endl;
113 int nelmt =
m_fields[0]->GetExpSize();
124 for(
int el = 0; el < nelmt; ++el)
126 order = std::max(expOrder[el]-1, 1);
127 cfl[el] =
m_timestep*(stdVelocity[el] * cLambda * order * order);
138 int n_element =
m_fields[0]->GetExpSize();
145 CFL = CFL_loc = cfl[elmtid];
149 elmtid =
m_fields[0]->GetExp(elmtid)->GetGeom()->GetGlobalID();
160 elmtid = elmtid%
m_fields[0]->GetPlane(0)->GetExpSize();
SOLVER_UTILS_EXPORT Array< OneD, NekDouble > GetElmtCFLVals(void)
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
NekDouble m_timestep
Time step size.
SOLVER_UTILS_EXPORT const Array< OneD, int > GetNumExpModesPerExp()
SOLVER_UTILS_EXPORT NekDouble GetCFLEstimate(int &elmtid)
std::string m_sessionName
Name of the session.
int Imax(int n, const T *x, const int incx)
Return the index of the maximum element in x.
LibUtilities::CommSharedPtr m_comm
Communicator.
virtual SOLVER_UTILS_EXPORT Array< OneD, NekDouble > v_GetMaxStdVelocity()
int m_cflWriteFldWaitSteps
Number of timesteps after which IO_CFLWriteFld is activated.
virtual SOLVER_UTILS_EXPORT bool v_PostIntegrate(int step)
NekDouble m_cflWriteFld
Write field if cfl is higher than IO_CFLWriteFld treshold.
virtual SOLVER_UTILS_EXPORT bool v_PostIntegrate(int step)
Base class for unsteady solvers.
virtual SOLVER_UTILS_EXPORT void v_InitObject()
Init object for UnsteadySystem class.
SOLVER_UTILS_EXPORT void WriteFld(const std::string &outname)
Write field data to the given filename.
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array holding all dependent variables.
LibUtilities::SessionReaderSharedPtr m_session
The session reader.
virtual SOLVER_UTILS_EXPORT void v_InitObject()
Init object for UnsteadySystem class.
SOLVER_UTILS_EXPORT AdvectionSystem(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
virtual SOLVER_UTILS_EXPORT ~AdvectionSystem()
std::shared_ptr< SessionReader > SessionReaderSharedPtr
enum HomogeneousType m_HomogeneousType
int m_cflsteps
dump cfl estimate