v0.14.0
Loading...
Searching...
No Matches
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}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440

◆ 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}
@ ROW
Definition: definitions.h:123
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface refernce to pointer of interface.
Vector manager is used to create vectors \mofem_vectors.
Definition: VecManager.hpp:23

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: