Flow123d  JS_before_hm-1576-g4d0b70e
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Elasticity Class Reference

#include <elasticity.hh>

Inheritance diagram for Elasticity:
Inheritance graph
[legend]
Collaboration diagram for Elasticity:
Collaboration graph
[legend]

Classes

class  EqData
 
class  EqFields
 

Public Types

typedef Elasticity FactoryBaseType
 

Public Member Functions

 Elasticity (Mesh &init_mesh, const Input::Record in_rec, TimeGovernor *tm=nullptr)
 Constructor. More...
 
void zero_time_step () override
 Initialize solution in the zero time. More...
 
bool evaluate_time_constraint (double &)
 
void update_solution () override
 Computes the solution in one time instant. More...
 
void next_time ()
 Pass to next time and update equation data. More...
 
void solve_linear_system ()
 Solve without updating time step and without output. More...
 
void output_data ()
 Postprocesses the solution and writes to output file. More...
 
 ~Elasticity ()
 Destructor. More...
 
void initialize () override
 
void update_output_fields ()
 
void set_potential_load (const Field< 3, FieldValue< 3 >::Scalar > &potential)
 
void calculate_cumulative_balance ()
 
const Vec & get_solution ()
 
EqFieldseq_fields ()
 
EqDataeq_data ()
 
- Public Member Functions inherited from EquationBase
 EquationBase ()
 
 EquationBase (Mesh &mesh, const Input::Record in_rec)
 
virtual ~EquationBase ()
 
virtual void choose_next_time ()
 
virtual void set_time_upper_constraint (double dt, std::string message)
 
virtual void set_time_lower_constraint (double dt, std::string message)
 
TimeGovernortime ()
 
virtual void set_time_governor (TimeGovernor &time)
 
double planned_time ()
 
double solved_time ()
 
Meshmesh ()
 
std::shared_ptr< Balancebalance () const
 
TimeMark::Type mark_type ()
 
FieldSeteq_fieldset ()
 

Static Public Member Functions

static const Input::Type::Recordget_input_type ()
 Declare input record type for the equation TransportDG. More...
 
- Static Public Member Functions inherited from EquationBase
static Input::Type::Recordrecord_template ()
 Template Record with common keys for derived equations. More...
 

Private Member Functions

void preallocate ()
 

Private Attributes

GenericAssembly< StiffnessAssemblyElasticity > * stiffness_assembly_
 general assembly objects, hold assembly objects of appropriate dimension More...
 
GenericAssembly< RhsAssemblyElasticity > * rhs_assembly_
 
GenericAssembly< OutpuFieldsAssemblyElasticity > * output_fields_assembly_
 
Physical parameters
std::shared_ptr< EqFieldseq_fields_
 Fields for model parameters. More...
 
std::shared_ptr< EqDataeq_data_
 Data for model parameters. More...
 
Solution of algebraic system
Vec rhs
 Vector of right hand side. More...
 
Mat stiffness_matrix
 The stiffness matrix. More...
 
Output to file
std::shared_ptr< OutputTimeoutput_stream_
 
Input::Record input_rec
 Record with input specification. More...
 
Other
bool allocation_done
 Indicates whether matrices have been preallocated. More...
 

Static Private Attributes

static const int registrar
 Registrar of class to factory. More...
 

Additional Inherited Members

- Protected Attributes inherited from EquationBase
bool equation_empty_
 flag is true if only default constructor was called More...
 
Meshmesh_
 
TimeGovernortime_
 
Input::Record input_record_
 
FieldSeteq_fieldset_
 
std::shared_ptr< Balancebalance_
 object for calculation and writing the mass balance to file. More...
 

Detailed Description

Definition at line 47 of file elasticity.hh.

Member Typedef Documentation

Definition at line 202 of file elasticity.hh.

Constructor & Destructor Documentation

Elasticity::Elasticity ( Mesh init_mesh,
const Input::Record  in_rec,
TimeGovernor tm = nullptr 
)

Constructor.

Parameters
init_meshcomputational mesh
in_recinput record
tmtime governor (if nullptr then it is created from input record)

Definition at line 272 of file elasticity.cc.

Elasticity::~Elasticity ( )

Destructor.

Definition at line 386 of file elasticity.cc.

Here is the caller graph for this function:

Member Function Documentation

void Elasticity::calculate_cumulative_balance ( )

Definition at line 571 of file elasticity.cc.

Here is the caller graph for this function:

EqData& Elasticity::eq_data ( )
inline

Definition at line 198 of file elasticity.hh.

EqFields& Elasticity::eq_fields ( )
inline

Definition at line 196 of file elasticity.hh.

bool Elasticity::evaluate_time_constraint ( double &  )
inline

Definition at line 159 of file elasticity.hh.

const Record & Elasticity::get_input_type ( )
static

Declare input record type for the equation TransportDG.

Definition at line 46 of file elasticity.cc.

Here is the caller graph for this function:

const Vec& Elasticity::get_solution ( )
inline

Definition at line 193 of file elasticity.hh.

void Elasticity::initialize ( )
overridevirtual

This method should initialize fields of the equation. All members (e.g. number of components) that are necessary for the field initialization must be set between construction and call of initialize. After this method the upper level coupling may set sharing of some fields between equations.

Reimplemented from EquationBase.

Definition at line 317 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::next_time ( )

Pass to next time and update equation data.

Definition at line 493 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::output_data ( void  )
virtual

Postprocesses the solution and writes to output file.

Reimplemented from EquationBase.

Definition at line 550 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::preallocate ( )
private

Definition at line 463 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::set_potential_load ( const Field< 3, FieldValue< 3 >::Scalar > &  potential)
inline

Definition at line 188 of file elasticity.hh.

void Elasticity::solve_linear_system ( )

Solve without updating time step and without output.

Definition at line 502 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::update_output_fields ( )

Definition at line 403 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::update_solution ( void  )
overridevirtual

Computes the solution in one time instant.

Reimplemented from EquationBase.

Definition at line 479 of file elasticity.cc.

Here is the caller graph for this function:

void Elasticity::zero_time_step ( )
overridevirtual

Initialize solution in the zero time.

Reimplemented from EquationBase.

Definition at line 429 of file elasticity.cc.

Member Data Documentation

bool Elasticity::allocation_done
private

Indicates whether matrices have been preallocated.

Definition at line 259 of file elasticity.hh.

std::shared_ptr<EqData> Elasticity::eq_data_
private

Data for model parameters.

Definition at line 223 of file elasticity.hh.

std::shared_ptr<EqFields> Elasticity::eq_fields_
private

Fields for model parameters.

Definition at line 220 of file elasticity.hh.

Input::Record Elasticity::input_rec
private

Record with input specification.

Definition at line 247 of file elasticity.hh.

GenericAssembly< OutpuFieldsAssemblyElasticity >* Elasticity::output_fields_assembly_
private

Definition at line 266 of file elasticity.hh.

std::shared_ptr<OutputTime> Elasticity::output_stream_
private

Definition at line 244 of file elasticity.hh.

const int Elasticity::registrar
staticprivate
Initial value:
=
Input::register_class< Elasticity, Mesh &, const Input::Record>(std::string(Elasticity::EqData::name()) + "_FE") +

Registrar of class to factory.

Definition at line 209 of file elasticity.hh.

Vec Elasticity::rhs
private

Vector of right hand side.

Definition at line 233 of file elasticity.hh.

GenericAssembly< RhsAssemblyElasticity >* Elasticity::rhs_assembly_
private

Definition at line 265 of file elasticity.hh.

GenericAssembly< StiffnessAssemblyElasticity >* Elasticity::stiffness_assembly_
private

general assembly objects, hold assembly objects of appropriate dimension

Definition at line 264 of file elasticity.hh.

Mat Elasticity::stiffness_matrix
private

The stiffness matrix.

Definition at line 236 of file elasticity.hh.


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