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

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

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

Public Member Functions

 BasicBCVectorScale (double scale, std::string file_name)
 
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
 

Public Attributes

double sCale
 

Detailed Description

Definition at line 54 of file BasicBoundaryConditionsInterface.hpp.

Constructor & Destructor Documentation

◆ BasicBCVectorScale()

BasicBoundaryConditionsInterface::BasicBCVectorScale::BasicBCVectorScale ( double  scale,
std::string  file_name 
)
inline

Definition at line 56 of file BasicBoundaryConditionsInterface.hpp.

57  : sCale(scale), TimeScaleVector3(file_name, false) {}

Member Function Documentation

◆ getVector()

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

Reimplemented from MoFEM::TimeScaleVector< SPACE_DIM >.

Definition at line 59 of file BasicBoundaryConditionsInterface.hpp.

59  {
61  auto vec2 = MoFEM::TimeScaleVector3::getVector(time);
63  vec(i) = sCale * vec2(i);
64  return vec;
65  }

Member Data Documentation

◆ sCale

double BasicBoundaryConditionsInterface::BasicBCVectorScale::sCale

Definition at line 55 of file BasicBoundaryConditionsInterface.hpp.


The documentation for this struct was generated from the following file:
FTensor::Tensor1< double, 3 >
BasicBoundaryConditionsInterface::BasicBCVectorScale::sCale
double sCale
Definition: BasicBoundaryConditionsInterface.hpp:55
MoFEM::TimeScaleVector3
TimeScaleVector< 3 > TimeScaleVector3
Definition: ScalingMethod.hpp:126
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 >
MoFEM::TimeScaleVector::getVector
virtual FTensor::Tensor1< double, SPACE_DIM > getVector(const double time)
Definition: ScalingMethod.cpp:220