v0.14.0
Public Member Functions | Public Attributes | List of all members
ThermalElement::UpdateAndControl Struct Reference

this calass is to control time stepping More...

#include <users_modules/basic_finite_elements/src/ThermalElement.hpp>

Inheritance diagram for ThermalElement::UpdateAndControl:
[legend]
Collaboration diagram for ThermalElement::UpdateAndControl:
[legend]

Public Member Functions

 UpdateAndControl (MoFEM::Interface &m_field, const std::string temp_name, const std::string rate_name)
 
MoFEMErrorCode preProcess ()
 
MoFEMErrorCode postProcess ()
 

Public Attributes

MoFEM::InterfacemField
 
const std::string tempName
 
const std::string rateName
 

Detailed Description

this calass is to control time stepping

It is used to save data for temperature rate vector to MoFEM field.

Definition at line 562 of file ThermalElement.hpp.

Constructor & Destructor Documentation

◆ UpdateAndControl()

ThermalElement::UpdateAndControl::UpdateAndControl ( MoFEM::Interface m_field,
const std::string  temp_name,
const std::string  rate_name 
)
inline

Definition at line 568 of file ThermalElement.hpp.

570  : mField(m_field), tempName(temp_name), rateName(rate_name) {}

Member Function Documentation

◆ postProcess()

MoFEMErrorCode ThermalElement::UpdateAndControl::postProcess ( )

Definition at line 449 of file ThermalElement.cpp.

449  {
452 }

◆ preProcess()

MoFEMErrorCode ThermalElement::UpdateAndControl::preProcess ( )

Definition at line 441 of file ThermalElement.cpp.

441  {
443  CHKERR mField.getInterface<VecManager>()->setOtherLocalGhostVector(
444  problemPtr, tempName, rateName, ROW, ts_u_t, INSERT_VALUES,
445  SCATTER_REVERSE);
447 }

Member Data Documentation

◆ mField

MoFEM::Interface& ThermalElement::UpdateAndControl::mField

Definition at line 564 of file ThermalElement.hpp.

◆ rateName

const std::string ThermalElement::UpdateAndControl::rateName

Definition at line 566 of file ThermalElement.hpp.

◆ tempName

const std::string ThermalElement::UpdateAndControl::tempName

Definition at line 565 of file ThermalElement.hpp.


The documentation for this struct was generated from the following files:
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:460
MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
Definition: UnknownInterface.hpp:93
ThermalElement::UpdateAndControl::mField
MoFEM::Interface & mField
Definition: ThermalElement.hpp:564
ROW
@ ROW
Definition: definitions.h:136
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::VecManager
Vector manager is used to create vectors \mofem_vectors.
Definition: VecManager.hpp:23
ThermalElement::UpdateAndControl::tempName
const std::string tempName
Definition: ThermalElement.hpp:565
ThermalElement::UpdateAndControl::rateName
const std::string rateName
Definition: ThermalElement.hpp:566
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:453
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359