46 #ifndef _STABILIZATIONSUPG_SEMI_IMPLICIT_HPP_ 47 #define _STABILIZATIONSUPG_SEMI_IMPLICIT_HPP_ 1
50 #pragma GCC diagnostic ignored "-Wunused-variable" 51 #pragma GCC diagnostic ignored "-Wunused-parameter" 53 #include <Epetra_ConfigDefs.h> 56 #include <Epetra_MpiComm.h> 58 #include <Epetra_SerialComm.h> 61 #include <Epetra_FECrsMatrix.h> 64 #pragma GCC diagnostic warning "-Wunused-variable" 65 #pragma GCC diagnostic warning "-Wunused-parameter" 67 #include <lifev/navier_stokes_blocks/solver/Stabilization.hpp> 69 #include <lifev/core/fem/FESpace.hpp> 70 #include <lifev/core/fem/ReferenceFE.hpp> 72 #include <lifev/eta/fem/ETFESpace.hpp> 75 #include <Epetra_FECrsGraph.h> 76 #include <lifev/eta/expression/Integrate.hpp> 77 #include <lifev/eta/expression/BuildGraph.hpp> 79 #include <lifev/core/fem/TimeAndExtrapolationHandlerQuadPts.hpp> StabilizationSUPG_semi_implicit * createStabilizationSUPG_semi_implicit()
Factory create function.
matrixPtr_Type const & block_11() const
Get block11 of the stabilization matrix.
std::shared_ptr< matrix_Type > matrixPtr_Type
static bool S_registerStabilizationSUPG_semi_implicit
vectorPtr_Type M_finePressure
ETFESpace< mesh_Type, map_Type, 3, 1 > ETFESpace_pressure
fespacePtr_Type M_pFESpace
matrixPtr_Type M_block_00
Epetra_FECrsGraph graph_Type
FESpace - Short description here please!
void setBDForder(const Real &bdfOrder)
Set the bdf order.
void importFromHDF5(std::string const &fileName, std::string const &matrixName="matrix")
Read a matrix from a HDF5 (.h5) file.
graphPtr_Type M_graph_block01
matrixPtr_Type const & block_00() const
Get block00 of the stabilization matrix.
matrixPtr_Type M_block_10
virtual ~StabilizationSUPG_semi_implicit()
~Destructor
return_Type operator()(const Real &a)
fespacePtr_Type M_uFESpace
finite element spaces for velocity and pressure
void setViscosity(const Real &viscosity)
Set the fluid dynamic viscosity.
void apply_vector(vectorPtr_Type &rhs_velocity, vectorPtr_Type &rhs_pressure, const vector_Type &velocityExtrapolated, const vector_Type &velocity_rhs)
Adds to the right hand side the contribution coming from the SUPG stabilization.
matrixPtr_Type const & block_10() const
Get block10 of the stabilization matrix.
Real M_viscosity
fluid dynamic viscosity
matrixPtr_Type M_block_01
SquareRoot_supg_semi_implicit()
ETFESpacePtr_velocity M_fespaceUETA
static const LifeV::UInt elm_nodes_num[]
vectorPtr_Type M_rhsVelocity
void setETvelocitySpace(const ETFESpacePtr_velocity &velocityEta_fespace)
Set Expression Template FE space for velocity.
void setVelocitySpace(fespacePtr_Type velocityFESpace)
Set FE space for velocity.
void setAlpha(const Real &alpha)
Set the bdf order.
graphPtr_Type M_graph_block11
Epetra_Import const & importer()
Getter for the Epetra_Import.
void setTimeStep(const Real ×tep)
Set the time step size.
std::shared_ptr< Epetra_FECrsGraph > graphPtr_Type
Real M_timestep
stabilization parameters for the momentum and continuity equations
StabilizationSUPG_semi_implicit()
Default Constructor.
ETFESpacePtr_pressure M_fespacePETA
matrixPtr_Type const & block_01() const
Get block01 of the stabilization matrix.
~SquareRoot_supg_semi_implicit()
std::shared_ptr< fespace_Type > fespacePtr_Type
std::shared_ptr< ETFESpace_velocity > ETFESpacePtr_velocity
void setUseGraph(const bool &useGraph)
Set if using the graph.
MatrixEpetra< Real > matrix_Type
Real M_density
fluid density
std::string label()
Get name of stabilization being used.
ETFESpace< mesh_Type, map_Type, 3, 3 > ETFESpace_velocity
void setPressureSpace(fespacePtr_Type pressureFESpace)
Set Expression Template FE space for velocity.
double Real
Generic real data.
graphPtr_Type M_graph_block00
std::shared_ptr< ETFESpace_pressure > ETFESpacePtr_pressure
RegionMesh< LinearTetra > mesh_Type
void setETpressureSpace(const ETFESpacePtr_pressure &pressureEta_fespace)
Set Expression Template FE space for velocity.
void setConstant(const int &value)
Set the constant C_I for the supg.
std::shared_ptr< vector_Type > vectorPtr_Type
void setCommunicator(std::shared_ptr< Epetra_Comm > comm)
Set the Epetra communicator.
graphPtr_Type M_graph_block10
std::vector< std::vector< VectorSmall< 1 > > > M_fineScalePressure
void apply_matrix(const vector_Type &velocityExtrapolated)
Updates the system matrix in Navier-Stokes simulations in fixed coordinates.
void setDensity(const Real &density)
Set the fluid density.
vectorPtr_Type M_fineVelocity
FESpace< mesh_Type, map_Type > fespace_Type
std::shared_ptr< Epetra_Comm > M_comm
Epetra communicator.
class ETFESpace A light, templated version of the FESpace
matrixPtr_Type M_block_11
SquareRoot_supg_semi_implicit(const SquareRoot_supg_semi_implicit &)