Class to solve the linear conservation law (Hyperbolic equation) in 1-D by a MUSCL Finite Volume scheme. More...


Public Types |
Public Member Functions | |
LCL1D (Mesh &m) | |
Constructor using mesh instance. | |
LCL1D (Mesh &m, Vect< real_t > &U) | |
Constructor. | |
~LCL1D () | |
Destructor. | |
Vect< real_t > & | getFlux () |
Return sidewise fluxes. | |
void | setInitialCondition (Vect< real_t > &u) |
Assign initial condition by a vector. More... | |
void | setInitialCondition (real_t u) |
Assign a constant initial condition. More... | |
void | setReconstruction () |
Run MUSCL reconstruction. | |
real_t | runOneTimeStep () |
Run one time step of the linear conservation law. More... | |
void | setBC (real_t u) |
Set Dirichlet boundary condition. More... | |
void | setBC (const Side &sd, real_t u) |
Set Dirichlet boundary condition. More... | |
void | setBC (int code, real_t u) |
Set Dirichlet boundary condition. More... | |
void | setVelocity (Vect< real_t > &v) |
Set convection velocity. More... | |
void | setVelocity (real_t v) |
Set (constant) convection velocity. | |
void | setReferenceLength (real_t dx) |
Assign reference length value. | |
real_t | getReferenceLength () const |
Return reference length. | |
void | Forward (const Vect< real_t > &Flux, Vect< real_t > &Field) |
Computation of the primal variable n->n+1. More... | |
real_t | getMeanLength () const |
Return mean length. | |
real_t | getMaximumLength () const |
Return maximal length. | |
real_t | getMinimumLength () const |
Return mimal length. | |
real_t | getTauLim () const |
Return mean length. | |
void | print_mesh_stat () |
Output mesh information. | |
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. | |
Mesh & | getMesh () 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... | |
Detailed Description
Class to solve the linear conservation law (Hyperbolic equation) in 1-D by a MUSCL Finite Volume scheme.
Member Enumeration Documentation
|
inherited |
|
inherited |
|
inherited |
Member Function Documentation
Assign initial condition by a vector.
- Parameters
-
[in] u Vector containing initial condition
void setInitialCondition | ( | real_t | u | ) |
Assign a constant initial condition.
- Parameters
-
[in] u Constant value for the initial condition
real_t runOneTimeStep | ( | ) |
Run one time step of the linear conservation law.
- Returns
- Value of the time step
void setBC | ( | real_t | u | ) |
Set Dirichlet boundary condition.
Assign a constant value u
to all boundary sides
Set Dirichlet boundary condition.
Assign a constant value to a side
- Parameters
-
[in] sd Side to which value is prescibed [in] u Value to prescribe
void setBC | ( | int | code, |
real_t | u | ||
) |
Set Dirichlet boundary condition.
Assign a constant value sides with a given code
- Parameters
-
[in] code Code of sides to which value is prescibed [in] u Value to prescribe
Set convection velocity.
- Parameters
-
[in] v Vect instance containing velocity
Computation of the primal variable n->n+1.
Vector Flux contains elementwise fluxes issued from the Riemann problem, calculated with, as left element, getNeighborElement(1) and right element getNeighborElement(2) if getNeighborElement(2) doesn't exist, we are on a boundary and we prescribe a symmetry condition
|
inherited |
Assign time step value.
- Parameters
-
[in] dt Time step value
|
inherited |
Assign CFL value.
- Parameters
-
[in] CFL Value of CFL
|
inherited |
Set verbosity parameter.
- Parameters
-
[in] v Value of verbosity parameter
|
inherited |
Function to reconstruct by the Muscl method.
- Parameters
-
[in] U Field to reconstruct [out] LU Left gradient vector [out] RU Right gradient vector [in] dof Label of dof to reconstruct
|
inherited |
Choose a flux solver.
- Parameters
-
[in] s Solver to choose
|
inherited |
Choose a flux limiter.
- Parameters
-
[in] l Limiter to choose