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)
 

Private Attributes

const std::string param_name_
 
std::vector< utils::ExpressionValueparam_
 

Friends

class GenericMatParams
 

Detailed Description

Definition at line 9 of file MatParams.hpp.

Constructor & Destructor Documentation

◆ GenericMatParam()

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

Definition at line 23 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 
)

◆ operator()() [1/2]

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

Definition at line 42 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 51 of file MatParams.cpp.

References param_, x, y, and z.

Friends And Related Symbol Documentation

◆ GenericMatParams

friend class GenericMatParams
friend

Definition at line 23 of file MatParams.hpp.

Member Data Documentation

◆ param_

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

Definition at line 21 of file MatParams.hpp.

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

◆ param_name_

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

Definition at line 20 of file MatParams.hpp.

Referenced by add_multimaterial().


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