PolyFEM
Loading...
Searching...
No Matches
polyfem::assembler::GenericMatParam Class Reference

#include <MatParams.hpp>

Public Member Functions

 GenericMatParam (const std::string &param_name)
 
double operator() (const RowVectorNd &p, double t, int index) const
 
double operator() (double x, double y, double z, double t, int index) const
 
void add_multimaterial (const int index, const json &params, const std::string &unit_type, const io::ResourceIO &resources)
 
bool is_constant () const
 
bool is_time_dependent () const
 

Private Attributes

const std::string param_name_
 
std::vector< utils::ExpressionValue > param_
 
std::size_t nonconstant_count_ = 0
 
std::size_t time_dependent_count_ = 0
 

Friends

class GenericMatParams
 

Detailed Description

Definition at line 12 of file MatParams.hpp.

Constructor & Destructor Documentation

◆ GenericMatParam()

polyfem::assembler::GenericMatParam::GenericMatParam ( const std::string &  param_name)

Definition at line 74 of file MatParams.cpp.

Member Function Documentation

◆ add_multimaterial()

void polyfem::assembler::GenericMatParam::add_multimaterial ( const int  index,
const json &  params,
const std::string &  unit_type,
const io::ResourceIO &  resources 
)

◆ is_constant()

bool polyfem::assembler::GenericMatParam::is_constant ( ) const

Definition at line 79 of file MatParams.cpp.

References nonconstant_count_, and param_.

Referenced by polyfem::assembler::ThermalMassDensity::is_constant().

Here is the caller graph for this function:

◆ is_time_dependent()

bool polyfem::assembler::GenericMatParam::is_time_dependent ( ) const

Definition at line 84 of file MatParams.cpp.

References param_, and time_dependent_count_.

Referenced by polyfem::assembler::ThermalMassDensity::is_time_dependent().

Here is the caller graph for this function:

◆ operator()() [1/2]

double polyfem::assembler::GenericMatParam::operator() ( const RowVectorNd &  p,
double  t,
int  index 
) const

Definition at line 111 of file MatParams.cpp.

References x, y, and z.

◆ operator()() [2/2]

double polyfem::assembler::GenericMatParam::operator() ( double  x,
double  y,
double  z,
double  t,
int  index 
) const

Definition at line 120 of file MatParams.cpp.

References param_, x, y, and z.

Friends And Related Symbol Documentation

◆ GenericMatParams

friend class GenericMatParams
friend

Definition at line 30 of file MatParams.hpp.

Member Data Documentation

◆ nonconstant_count_

std::size_t polyfem::assembler::GenericMatParam::nonconstant_count_ = 0
private

Definition at line 27 of file MatParams.hpp.

Referenced by add_multimaterial(), and is_constant().

◆ param_

std::vector<utils::ExpressionValue> polyfem::assembler::GenericMatParam::param_
private

Definition at line 26 of file MatParams.hpp.

Referenced by add_multimaterial(), is_constant(), is_time_dependent(), and operator()().

◆ param_name_

const std::string polyfem::assembler::GenericMatParam::param_name_
private

Definition at line 25 of file MatParams.hpp.

Referenced by add_multimaterial().

◆ time_dependent_count_

std::size_t polyfem::assembler::GenericMatParam::time_dependent_count_ = 0
private

Definition at line 28 of file MatParams.hpp.

Referenced by add_multimaterial(), and is_time_dependent().


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