v0.14.0
Public Member Functions | Private Attributes | List of all members
BasicBoundaryConditionsInterface::BasicBCVectorConst Struct Reference

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

Inheritance diagram for BasicBoundaryConditionsInterface::BasicBCVectorConst:
[legend]
Collaboration diagram for BasicBoundaryConditionsInterface::BasicBCVectorConst:
[legend]

Public Member Functions

 BasicBCVectorConst (double scale, FTensor::Tensor1< double, 3 > t_vec)
 
FTensor::Tensor1< double, 3 > getVector (const double time)
 
- Public Member Functions inherited from MoFEM::TimeScaleVector< SPACE_DIM >
 TimeScaleVector (std::string name="-time_vector_file", bool error_if_file_not_given=false)
 
 TimeScaleVector (std::string name, int ms_id, bool error_if_file_not_given=false)
 
virtual FTensor::Tensor1< double, SPACE_DIMgetVectorFromData (const double time)
 
- Public Member Functions inherited from MoFEM::ScalingMethod
virtual double getScale (const double time)
 Get scaling at given time. More...
 
 ScalingMethod ()=default
 
virtual ~ScalingMethod ()=default
 

Private Attributes

double sCale
 
FTensor::Tensor1< double, 3 > tForce
 

Detailed Description

Definition at line 39 of file BasicBoundaryConditionsInterface.hpp.

Constructor & Destructor Documentation

◆ BasicBCVectorConst()

BasicBoundaryConditionsInterface::BasicBCVectorConst::BasicBCVectorConst ( double  scale,
FTensor::Tensor1< double, 3 >  t_vec 
)
inline

Definition at line 40 of file BasicBoundaryConditionsInterface.hpp.

41  : tForce(t_vec), sCale(scale) {}

Member Function Documentation

◆ getVector()

FTensor::Tensor1<double, 3> BasicBoundaryConditionsInterface::BasicBCVectorConst::getVector ( const double  time)
inlinevirtual

Reimplemented from MoFEM::TimeScaleVector< SPACE_DIM >.

Definition at line 43 of file BasicBoundaryConditionsInterface.hpp.

43  {
45  tForce(i) *= sCale;
46  return tForce;
47  }

Member Data Documentation

◆ sCale

double BasicBoundaryConditionsInterface::BasicBCVectorConst::sCale
private

Definition at line 50 of file BasicBoundaryConditionsInterface.hpp.

◆ tForce

FTensor::Tensor1<double, 3> BasicBoundaryConditionsInterface::BasicBCVectorConst::tForce
private

Definition at line 51 of file BasicBoundaryConditionsInterface.hpp.


The documentation for this struct was generated from the following file:
BasicBoundaryConditionsInterface::BasicBCVectorConst::tForce
FTensor::Tensor1< double, 3 > tForce
Definition: BasicBoundaryConditionsInterface.hpp:51
scale
double scale
Definition: plastic.cpp:119
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
FTensor::Index< 'i', 3 >
BasicBoundaryConditionsInterface::BasicBCVectorConst::sCale
double sCale
Definition: BasicBoundaryConditionsInterface.hpp:50