PhyStar  v0.0.0 thu24
CartBoxFDMDuct Class Reference

#include <CartBoxFDMDuct.h>

Inheritance diagram for CartBoxFDMDuct:
Collaboration diagram for CartBoxFDMDuct:

Public Member Functions

void AddDpDxAndFixFluxIfNecessary ()
 
void ConfigFlowDict ()
 
virtual void SolveStageOne (const int &step, const Real &time, const Real &coef) override final
 
virtual void InitStatLogFile () override final
 
virtual void StatLog (const int &istep, const Real &time) override final
 
virtual void Statistic (const int &istep, const Real &time) override final
 
- Public Member Functions inherited from solver::fluidsol::FDMSolver
 FDMSolver ()
 
virtual ~FDMSolver ()
 
- Public Member Functions inherited from solver::Solver
 Solver ()
 
virtual ~Solver ()
 
void PrintAbstract ()
 
void Relase (const SolverNameList &flag)
 
void ConfigGlobalDict (const std::string filename)
 
void PrintConfigGlobalDict ()
 
virtual std::string GetSolverName ()
 
virtual std::string GetMeshName ()
 
- Public Member Functions inherited from solver::CartDataSpace< N_dim, 999 >
 CartDataSpace ()
 
 ~CartDataSpace ()
 
void ConfigDataSpaceDict ()
 config information of mpi from ControlDict.in More...
 
void CheckConfigDataSpaceDict ()
 

Private Types

using FlowType = solver::fluidsol::boxfdm::FlowType
 
using DpDxType = solver::fluidsol::boxfdm::DpDxType
 

Private Member Functions

Real CalDpDxAndFixFlux ()
 
void AddDpDx (const Real &dpdx)
 
void InitDuctFlow (const Real &time)
 
virtual void GenerateInitFlow (const FlowType &ftype, const Real &time) override final
 Genearate Flow at the begining. More...
 

Private Attributes

struct {
   DpDxType   dpdx_type
 
dict
 

Additional Inherited Members

- Static Public Member Functions inherited from solver::Solver
static const auto & GlobalDict ()
 
static const auto & Dt ()
 
- Static Public Member Functions inherited from solver::CartDataSpace< N_dim, 999 >
static std::vector< int > CalTotalShape (const std::vector< int > &flag)
 
- Public Attributes inherited from solver::CartDataSpace< N_dim, 999 >
std::vector< Realdomain_size
 
std::vector< int > mesh_size
 
std::vector< int > ghost_size
 
std::vector< int > stagger_flag
 
- Static Public Attributes inherited from solver::CartDataSpace< N_dim, 999 >
static std::vector< std::vector< Real > > domain_size
 
static std::vector< std::vector< Real > > gb_domain_size
 
static std::vector< int > mesh_size
 
static std::vector< int > gb_mesh_size
 
static std::vector< int > start_index
 
static std::vector< std::vector< int > > ghost_size
 
static std::vector< std::vector< int > > stagger_flag
 
static const std::vector< int > center_flag
 
static blockelm::CartMesh< N_dim > gb_cartmesh
 
static blockelm::CartBlock< N_dim > cartblock
 
static gsmpi::GSMPICart< N_dim > mpicomm
 
static std::vector< ibm::IBMCart< N_dim > > cartibm
 
static int ibm_flag
 
static std::vector< blockelm::CartField< Real, N_dim > * > tempfields
 
static tml::tmlnode dataspacetml
 
struct {
   std::vector< Real >   domain_size
 
   std::vector< int >   mesh_size
 
   std::vector< int >   ghost_size
 
   std::vector< int >   stagger_flag
 
dataspacedict
 
- Protected Member Functions inherited from solver::fluidsol::FluidSolBase
 FluidSolBase ()
 
virtual ~FluidSolBase ()
 
virtual void Init ()=0
 
virtual void Solve (const int &step, const Real &time, std::vector< std::shared_ptr< ppsol::PPSolBase >>)=0
 
virtual void SolveStageTwo (const int &step, const Real &time, const Real &coef)=0
 
virtual void Finish (const int &step, const Real &time)=0
 
virtual void WriteFields (const int &step, const Real &time)=0
 
- Protected Attributes inherited from solver::fluidsol::FluidSolBase
tml::tmlnode fluidsoltml
 
tml::tmlnode fparams
 
- Static Protected Attributes inherited from solver::fluidsol::FluidSolBase
static Realdtf = dt
 
- Static Protected Attributes inherited from solver::Solver
static std::string header = "PhyStar"
 
static std::string version = "v0.0.1"
 
static int count
 
static Solverptr_fluidsol = nullptr
 
static Solverptr_point_particlesol = nullptr
 
static Solverptr_resolved_particlesol = nullptr
 
static Real dt
 
static Real kvisc
 
static Real density
 
static tml::tmlnode globaltml
 
struct {
   std::string   casename
 
   Real   time_start
 
   Real   time_end
 
   Real   time_ndump
 
   int   ndim
 
   int   step_start
 
   int   nstep
 
   int   step_end
 
   int   step_ndump
 
   int   step_nscreen
 
   int   step_nstat
 
   int   step_nrefresh
 
   int   ppsol_flag
 
   int   ppsol_same_dict
 
   unsigned int   random_seed
 
globaldict
 

Member Typedef Documentation

◆ DpDxType

◆ FlowType

Member Function Documentation

◆ AddDpDx()

void CartBoxFDMDuct::AddDpDx ( const Real dpdx)
private

References solver::CartDataSpace< N_dim, 999 >::gb_mesh_size, and solver::CartDataSpace< N_dim, 999 >::ghost_size.

Here is the caller graph for this function:

◆ AddDpDxAndFixFluxIfNecessary()

void CartBoxFDMDuct::AddDpDxAndFixFluxIfNecessary ( )
inline

References AddDpDx(), CalDpDxAndFixFlux(), and dict.

Here is the call graph for this function:

◆ CalDpDxAndFixFlux()

Real CartBoxFDMDuct::CalDpDxAndFixFlux ( )
private
Here is the caller graph for this function:

◆ ConfigFlowDict()

void CartBoxFDMDuct::ConfigFlowDict ( )
inline

References dict, solver::fluidsol::FluidSolBase::fluidsoltml, solver::CartDataSpace< N_dim, 999 >::gb_domain_size, solver::Solver::kvisc, and solver::fluidsol::boxfdm::vConfigDpDxType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateInitFlow()

virtual void CartBoxFDMDuct::GenerateInitFlow ( const FlowType ftype,
const Real time 
)
inlinefinaloverrideprivatevirtual

Genearate Flow at the begining.

this function may be executed in parent class CartBoxFDM.

Parameters
ftypeflow type enum
timetime

References InitDuctFlow().

Here is the call graph for this function:

◆ InitDuctFlow()

◆ InitStatLogFile()

void CartBoxFDMDuct::InitStatLogFile ( )
finaloverridevirtual

References solver::CartDataSpace< N_dim, 999 >::mpicomm, and gsmpi::root.

Here is the caller graph for this function:

◆ SolveStageOne()

void CartBoxFDMDuct::SolveStageOne ( const int &  step,
const Real time,
const Real coef 
)
finaloverridevirtual

◆ Statistic()

void CartBoxFDMDuct::Statistic ( const int &  istep,
const Real time 
)
finaloverridevirtual

◆ StatLog()

Member Data Documentation

◆ 

struct { ... } CartBoxFDMDuct::dict

◆ dpdx_type

DpDxType CartBoxFDMDuct::dpdx_type

The documentation for this class was generated from the following files: