LifeV
|
OseenData - LifeV Base class which holds usual data for the NavierStokes equations solvers. More...
#include <OseenData.hpp>
Protected Attributes | |
timePtr_Type | M_time |
Data containers for time and mesh. More... | |
timeAdvancePtr_Type | M_timeAdvance |
Private Attributes | |
bool | M_semiImplicit |
To extract Mean Values at a given section z. More... | |
bool | M_shapeDerivatives |
bool | M_domainVelImplicit |
bool | M_convectiveImplicit |
UInt | M_computeMeanValuesPerSection |
UInt | M_NbZSections |
Real | M_ToleranceSection |
Real | M_XSectionFrontier |
Real | M_ZSectionInit |
Real | M_ZSectionFinal |
UInt | M_NbPolygonEdges |
StringDataList | M_stabilizationList |
bool | M_conservativeFormulation |
Public Types | |
typedef TimeData | time_Type |
typedef std::shared_ptr< time_Type > | timePtr_Type |
typedef TimeAdvanceData | timeAdvance_Type |
typedef std::shared_ptr< timeAdvance_Type > | timeAdvancePtr_Type |
Constructors & Destructor | |
OseenData () | |
Empty Constructor. More... | |
OseenData (const OseenData &oseenData) | |
Copy constructor. More... | |
virtual | ~OseenData () |
Virtual destructor. More... | |
Operators | |
OseenData & | operator= (const OseenData &oseenData) |
Operator=. More... | |
Methods | |
void | setup (const GetPot &dataFile, const std::string §ion="fluid") |
Read the dataFile and set all the quantities. More... | |
void | showMe (std::ostream &output=std::cout) const |
Display the values. More... | |
Set methods | |
void | setTimeData (const timePtr_Type timeData) |
Set data time container. More... | |
void | setTimeAdvanceData (const timeAdvancePtr_Type timeAdvanceData) |
Set data time advance container. More... | |
void | setDensity (const Real &density, const UInt nfluid=0) |
Set the density for the specified fluid. More... | |
void | setViscosity (const Real &viscosity, const UInt nfluid=0) |
Set the viscosity of the fluid. More... | |
void | setStokes (const bool stokes) |
Set this instance of OseenData to either a Stokes or a Navier-Stokes problem. More... | |
void | setSemiImplicit (const bool SI) |
Set the flag for the semi-implicit treatment of the shape derivatives in FSI simulations. More... | |
void | setUseShapeDerivatives (const bool SD) |
Set the flag for using shape derivatives. More... | |
Get methods | |
timePtr_Type | dataTime () const |
Get data time container. More... | |
timeAdvancePtr_Type | dataTimeAdvance () const |
Get data time advance container. More... | |
const UInt & | fluidNumber () const |
Get the number of the fluid. More... | |
const Real & | density (const UInt &n=0) const |
Get the density of the fluid. More... | |
const Real & | viscosity (const UInt &n=0) const |
Get the viscosity of the fluid. More... | |
std::string | uOrder () const |
Get the order of the finite elements used for velocity. More... | |
std::string | pOrder () const |
Get the order of the finite elements used for pressure. More... | |
UInt | verbose () const |
Temporal output verbose. More... | |
Real | dumpInit () const |
Dumping of the results. More... | |
UInt | dumpPeriod () const |
Get the frequency of the dumping. More... | |
Real | factor () const |
Get the amplification factor. More... | |
NSStabilization | stabilization () const |
Get the stabilization method. More... | |
bool | isStokes () const |
bool | isSemiImplicit () const |
Find out if a semi-implicit scheme is used. More... | |
bool | useShapeDerivatives () const |
Get the flag for using shape derivatives. More... | |
bool | domainVelImplicit () const |
Get the flag for considering implicitly the fluid domain (when it is moving, e.g. ALE) More... | |
bool | convectiveImplicit () const |
Get the flag for considering implicitly the fluid convective term. More... | |
UInt | computeMeanValuesPerSection () const |
Get the number of mean valuNes per section. More... | |
UInt | nbZSections () const |
Get the number of NBZ-sections. More... | |
Real | toleranceSection () const |
Tolerance section. More... | |
Real | xSectionFrontier () const |
X-Section frontier. More... | |
Real | zSectionInit () const |
Z section init. More... | |
Real | zSectionFinal () const |
Z section final. More... | |
UInt | nbPolygonEdges () const |
Number of edges of the polygon (in the mesh) describing the circle. More... | |
bool | conservativeFormulation () const |
Returns wether the formulation of the momentum conservation equation is written in conservative form or not. More... | |
Physics | |
UInt | M_fluidNumber |
number of this fluid More... | |
std::vector< Real > | M_density |
density of each fluid More... | |
std::vector< Real > | M_viscosity |
viscosity of each fluid More... | |
FE order | |
std::string | M_uOrder |
order of finite elements for velocity More... | |
std::string | M_pOrder |
order of finite elements for pressure More... | |
Miscellaneous | |
UInt | M_verbose |
temporal output verbose More... | |
Real | M_dumpInit |
time for starting the dumping of the results (Alex December 2003) More... | |
UInt | M_dumpPeriod |
frequency of the dumping (one dump after _dump_period time steps) (Alex December 2003) More... | |
Real | M_factor |
amplification factor for moving domains More... | |
bool | M_stokes |
true: Stokes problem; false: Navier-Stokes problem More... | |
Discretization | |
NSStabilization | M_stabMethod |
stabilization method More... | |
OseenData - LifeV Base class which holds usual data for the NavierStokes equations solvers.
The data is now able to store multiple fluids, but the use of the old interface (for only one fluid) is still available and fully compatible. The old way is to declare one fluid with its density and viscosity in [fluid/physics/density] and [fluid/physics/viscosity]. The set and get functions can then be used without specifying which fluid is concerned. Internally, the information is stored in vectors, but with only one value (the 0 value: density is stored in M_density[0]). In the new way, one has to declare first of all in [fluid/physics/fluid_number] the number of fluids that will be used. Then every fluid is specified in a section [fluid/physics/fluid_k] where k is the number of the fluid (k from 0 to fluid_number-1, the same enumeration is used internally). In this section, the density and the viscosity are declared.
Example: To declare two fluids, one should use in the data file: [fluid] [./physics] fluid_number = 2
[./fluid_0] density = 1; viscosity = 1;
[../fluid_1] density = 10; viscosity = 100;
Remark: in case both ways of declaring the fluids are used, the new one has priority. Remark: do not use "fluid_number = 1" with the old way, it will not work properly.
Definition at line 98 of file OseenData.hpp.
Definition at line 106 of file OseenData.hpp.
typedef std::shared_ptr<time_Type> timePtr_Type |
Definition at line 107 of file OseenData.hpp.
typedef TimeAdvanceData timeAdvance_Type |
Definition at line 109 of file OseenData.hpp.
typedef std::shared_ptr<timeAdvance_Type> timeAdvancePtr_Type |
Definition at line 110 of file OseenData.hpp.
OseenData | ( | ) |
Empty Constructor.
Definition at line 52 of file OseenData.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 128 of file OseenData.hpp.
void setup | ( | const GetPot & | dataFile, |
const std::string & | section = "fluid" |
||
) |
Read the dataFile and set all the quantities.
dataFile | data file |
section | section of the file |
Definition at line 159 of file OseenData.cpp.
void showMe | ( | std::ostream & | output = std::cout | ) | const |
Display the values.
Definition at line 236 of file OseenData.cpp.
|
inline |
Set data time container.
Definition at line 169 of file OseenData.hpp.
|
inline |
Set data time advance container.
timeAdvanceData | shared_ptr to TimeAdvanceData container |
Definition at line 178 of file OseenData.hpp.
Set the density for the specified fluid.
density | |
nfluid | the fluid number |
Definition at line 188 of file OseenData.hpp.
Set the viscosity of the fluid.
viscosity | |
nfluid | the fluid number |
Definition at line 199 of file OseenData.hpp.
|
inline |
Set this instance of OseenData to either a Stokes or a Navier-Stokes problem.
Stokes | a boolean that is "true" for a Stokes problem and "false" for a Navier-Stokes problem |
Definition at line 210 of file OseenData.hpp.
|
inline |
Set the flag for the semi-implicit treatment of the shape derivatives in FSI simulations.
SI | the flag for semi implicit treatment |
Definition at line 219 of file OseenData.hpp.
|
inline |
Set the flag for using shape derivatives.
SD | the flag for using shape derivatives |
Definition at line 232 of file OseenData.hpp.
|
inline |
Get data time container.
Definition at line 248 of file OseenData.hpp.
|
inline |
Get data time advance container.
Definition at line 257 of file OseenData.hpp.
|
inline |
Get the number of the fluid.
Definition at line 266 of file OseenData.hpp.
Get the density of the fluid.
n | the fluid number |
Definition at line 276 of file OseenData.hpp.
Get the viscosity of the fluid.
n | the fluid number |
Definition at line 287 of file OseenData.hpp.
|
inline |
Get the order of the finite elements used for velocity.
Definition at line 297 of file OseenData.hpp.
|
inline |
Get the order of the finite elements used for pressure.
Definition at line 306 of file OseenData.hpp.
|
inline |
|
inline |
Dumping of the results.
Definition at line 324 of file OseenData.hpp.
|
inline |
Get the frequency of the dumping.
Definition at line 333 of file OseenData.hpp.
|
inline |
Get the amplification factor.
Definition at line 342 of file OseenData.hpp.
|
inline |
Get the stabilization method.
Definition at line 351 of file OseenData.hpp.
|
inline |
find out if this is a Stokes or Navier-Stokes problem
Definition at line 361 of file OseenData.hpp.
|
inline |
Find out if a semi-implicit scheme is used.
Definition at line 370 of file OseenData.hpp.
|
inline |
Get the flag for using shape derivatives.
Definition at line 380 of file OseenData.hpp.
|
inline |
Get the flag for considering implicitly the fluid domain (when it is moving, e.g. ALE)
Definition at line 391 of file OseenData.hpp.
|
inline |
Get the flag for considering implicitly the fluid convective term.
Definition at line 402 of file OseenData.hpp.
|
inline |
Get the number of mean valuNes per section.
Definition at line 411 of file OseenData.hpp.
|
inline |
Get the number of NBZ-sections.
Definition at line 420 of file OseenData.hpp.
|
inline |
Tolerance section.
Definition at line 429 of file OseenData.hpp.
|
inline |
X-Section frontier.
Definition at line 438 of file OseenData.hpp.
|
inline |
Z section init.
Definition at line 447 of file OseenData.hpp.
|
inline |
Z section final.
Definition at line 456 of file OseenData.hpp.
|
inline |
Number of edges of the polygon (in the mesh) describing the circle.
Definition at line 465 of file OseenData.hpp.
|
inline |
Returns wether the formulation of the momentum conservation equation is written in conservative form or not.
Definition at line 474 of file OseenData.hpp.
|
protected |
Data containers for time and mesh.
Definition at line 484 of file OseenData.hpp.
|
protected |
Definition at line 485 of file OseenData.hpp.
|
protected |
number of this fluid
Definition at line 491 of file OseenData.hpp.
|
protected |
density of each fluid
Definition at line 494 of file OseenData.hpp.
|
protected |
viscosity of each fluid
Definition at line 497 of file OseenData.hpp.
|
protected |
order of finite elements for velocity
Definition at line 506 of file OseenData.hpp.
|
protected |
order of finite elements for pressure
Definition at line 509 of file OseenData.hpp.
|
protected |
temporal output verbose
Definition at line 518 of file OseenData.hpp.
|
protected |
time for starting the dumping of the results (Alex December 2003)
Definition at line 521 of file OseenData.hpp.
|
protected |
frequency of the dumping (one dump after _dump_period time steps) (Alex December 2003)
Definition at line 524 of file OseenData.hpp.
|
protected |
amplification factor for moving domains
Definition at line 527 of file OseenData.hpp.
|
protected |
true: Stokes problem; false: Navier-Stokes problem
Definition at line 530 of file OseenData.hpp.
|
protected |
stabilization method
Definition at line 538 of file OseenData.hpp.
|
private |
To extract Mean Values at a given section z.
Definition at line 545 of file OseenData.hpp.
|
private |
Definition at line 546 of file OseenData.hpp.
|
private |
Definition at line 547 of file OseenData.hpp.
|
private |
Definition at line 548 of file OseenData.hpp.
|
private |
Definition at line 549 of file OseenData.hpp.
|
private |
Definition at line 550 of file OseenData.hpp.
|
private |
Definition at line 551 of file OseenData.hpp.
|
private |
Definition at line 552 of file OseenData.hpp.
|
private |
Definition at line 553 of file OseenData.hpp.
|
private |
Definition at line 554 of file OseenData.hpp.
|
private |
Definition at line 555 of file OseenData.hpp.
|
private |
Definition at line 557 of file OseenData.hpp.
|
private |
Definition at line 558 of file OseenData.hpp.