OFELI's Logo

An Object Oriented Finite Element Library

Class to solve the Inviscid compressible fluid flows (Euler equations) for perfect gas in 3-D. More...

#include <ICPG3DT.h>

+ Inheritance diagram for ICPG3DT:

Public Member Functions

 ICPG3DT (Mesh &ms)
 Constructor using mesh data. More...
 
 ICPG3DT (Mesh &ms, Vect< real_t > &r, Vect< real_t > &v, Vect< real_t > &p)
 Constructor using mesh and initial data. More...
 
 ~ICPG3DT ()
 Destructor.
 
void setReconstruction ()
 Reconstruct. More...
 
real_t runOneTimeStep ()
 Advance one time step.
 
void Forward (const Vect< real_t > &flux, Vect< real_t > &field)
 Add flux to field.
 
real_t getFlux ()
 Return flux.
 
void setSolver (SolverType solver)
 Choose solver.
 
void setReferenceLength (real_t dx)
 Assign a reference length.
 
void setTimeStep (real_t dt)
 Assign a time step.
 
void setCFL (real_t CFL)
 Assign CFL value.
 
real_t getReferenceLength () const
 Return reference length.
 
real_t getTimeStep () const
 Return time step.
 
real_t getCFL () const
 Return CFL.
 
void setGamma (real_t gamma)
 Set γ value.
 
void setCv (real_t Cv)
 Set value of Cv (Heat capacity at constant volume)
 
void setCp (real_t Cp)
 Set value of Cp (Heat capacity at constant pressure)
 
void setKappa (real_t Kappa)
 Set Kappa value.
 
real_t getGamma () const
 Return value of γ.
 
real_t getCv () const
 Return value of Cv (Heat capacity at constant volume)
 
real_t getCp () const
 Return value of Cp (Heat capacity at constant pressure)
 
real_t getKappa () const
 Return value of \(\kappa\).
 
MeshgetMesh ()
 Return reference to mesh instance.
 
MeshgetPtrMesh ()
 Return pointer to mesh.
 
void getMomentum (Vect< real_t > &m) const
 Calculate elementwise momentum.
 
void getInternalEnergy (Vect< real_t > &e) const
 Calculate elementwise internal energy.
 
void getTotalEnergy (Vect< real_t > &e) const
 Return elementwise total energy.
 
void getSoundSpeed (Vect< real_t > &s) const
 Return elementwise sound speed.
 
void getMach (Vect< real_t > &m) const
 Return elementwise Mach number.
 
void setInitialConditionShockTube (const LocalVect< real_t, 5 > &BcG, const LocalVect< real_t, 5 > &BcD, real_t x0)
 Set initial condition for the schock tube problem.
 
void setInitialCondition (const LocalVect< real_t, 5 > &u)
 Set initial condition.
 
- Public Member Functions inherited from Muscl3DT
 Muscl3DT (Mesh &m)
 Constructor using mesh.
 
 ~Muscl3DT ()
 Destructor.
 
bool setReconstruction (const Vect< real_t > &U, Vect< real_t > &LU, Vect< real_t > &RU, size_t dof)
 Function to reconstruct by the Muscl method. More...
 
real_t getMinimumFaceArea () const
 Return minimum area of faces in the mesh.
 
real_t getMinimumElementVolume () const
 Return minimum volume of elements in the mesh.
 
real_t getMaximumFaceArea () const
 Return maximum area of faces in the mesh.
 
real_t getMaximumElementVolume () const
 Return maximum volume of elements in the mesh.
 
real_t getMeanFaceArea () const
 Return mean area of faces in the mesh.
 
real_t getMeanElementVolume () const
 Return mean volume of elements in the mesh.
 
real_t getMinimumEdgeLength () const
 Return minimum length of edges in the mesh.
 
real_t getMinimumVolumebyArea () const
 Return minimum volume by area in the mesh.
 
real_t getMaximumEdgeLength () const
 Return maximum length of edges in the mesh.
 
real_t getTauLim () const
 Return value of tau lim.
 
real_t getComega () const
 Return value of Comega.
 
void setbetalim (real_t bl)
 Assign value of beta lim.
 
- Public Member Functions inherited from Muscl
 Muscl (Mesh &m)
 Constructor using mesh instance.
 
virtual ~Muscl ()
 Destructor.
 
void setTimeStep (real_t dt)
 Assign time step value. More...
 
real_t getTimeStep () const
 Return time step value.
 
void setCFL (real_t CFL)
 Assign CFL value. More...
 
real_t getCFL () const
 Return CFL value.
 
void setReferenceLength (real_t dx)
 Assign reference length value. More...
 
real_t getReferenceLength () const
 Return reference length.
 
MeshgetMesh () const
 Return reference to Mesh instance.
 
void setVerbose (int v)
 Set verbosity parameter. More...
 
bool setReconstruction (const Vect< real_t > &U, Vect< real_t > &LU, Vect< real_t > &RU, size_t dof)
 Function to reconstruct by the Muscl method. More...
 
void setMethod (const Method &s)
 Choose a flux solver. More...
 
void setSolidZoneCode (int c)
 Choose a code for solid zone.
 
bool getSolidZone () const
 Return flag for presence of solid zones.
 
int getSolidZoneCode () const
 Return code of solid zone, 0 if this one is not present.
 
void setLimiter (Limiter l)
 Choose a flux limiter. More...
 

Additional Inherited Members

- Public Types inherited from Muscl
enum  Method {
  FIRST_ORDER_METHOD = 0 ,
  MULTI_SLOPE_Q_METHOD = 1 ,
  MULTI_SLOPE_M_METHOD = 2
}
 Enumeration for flux choice. More...
 
enum  Limiter {
  MINMOD_LIMITER = 0 ,
  VANLEER_LIMITER = 1 ,
  SUPERBEE_LIMITER = 2 ,
  VANALBADA_LIMITER = 3 ,
  MAX_LIMITER = 4
}
 Enumeration of flux limiting methods. More...
 
enum  SolverType {
  ROE_SOLVER = 0 ,
  VFROE_SOLVER = 1 ,
  LF_SOLVER = 2 ,
  RUSANOV_SOLVER = 3 ,
  HLL_SOLVER = 4 ,
  HLLC_SOLVER = 5 ,
  MAX_SOLVER = 6
}
 Enumeration of various solvers for the Riemann problem. More...
 

Detailed Description

Class to solve the Inviscid compressible fluid flows (Euler equations) for perfect gas in 3-D.

Solution method is a second-order MUSCL Finite Volume scheme with tetrahedra

Author
S. Clain, V. Clauzon

Constructor & Destructor Documentation

◆ ICPG3DT() [1/2]

ICPG3DT ( Mesh ms)

Constructor using mesh data.

Parameters
[in]msMesh instance

◆ ICPG3DT() [2/2]

ICPG3DT ( Mesh ms,
Vect< real_t > &  r,
Vect< real_t > &  v,
Vect< real_t > &  p 
)

Constructor using mesh and initial data.

Parameters
[in]msMesh instance
[in]rElementwise initial density vector (as instance of Element Vect)
[in]vElementwise initial velocity vector (as instance of Element Vect)
[in]pElementwise initial pressure vector (as instance of Element Vect)

Member Function Documentation

◆ setReconstruction()

void setReconstruction ( )

Reconstruct.

exit(3) if reconstruction failed






Copyright © 1998-2022 Rachid Touzani