PolyFEM
Loading...
Searching...
No Matches
polyfem::assembler::ElasticityAssembler::OutputStress Class Reference

Scratch for one output point. All tensor storage has a fixed 3x3 capacity. More...

#include <Assembler.hpp>

Public Member Functions

 OutputStress (const MatrixNd &deformation)
 
const MatrixNd & deformation () const
 
const MatrixNd & tensor (ElasticityTensorType type)
 

Public Attributes

MatrixNd native
 
ElasticityTensorType native_type = ElasticityTensorType::CAUCHY
 
bool has_stress = true
 
bool needs_stress = true
 
bool needs_energy = false
 
double energy = 0
 

Private Member Functions

const MatrixNd & inverse ()
 
double determinant ()
 

Private Attributes

const MatrixNd & deformation_
 
std::array< MatrixNd, 3 > tensors_
 
std::array< bool, 3 > computed_ {}
 
MatrixNd inverse_
 
bool inverse_ready_ = false
 
bool determinant_ready_ = false
 
double determinant_ = 0
 

Detailed Description

Scratch for one output point. All tensor storage has a fixed 3x3 capacity.

Definition at line 483 of file Assembler.hpp.

Constructor & Destructor Documentation

◆ OutputStress()

polyfem::assembler::ElasticityAssembler::OutputStress::OutputStress ( const MatrixNd &  deformation)
inlineexplicit

Definition at line 486 of file Assembler.hpp.

Member Function Documentation

◆ deformation()

const MatrixNd & polyfem::assembler::ElasticityAssembler::OutputStress::deformation ( ) const
inline

◆ determinant()

double polyfem::assembler::ElasticityAssembler::OutputStress::determinant ( )
private

Definition at line 34 of file Assembler.cpp.

References polyfem::utils::determinant(), and polyfem::PK1.

Here is the call graph for this function:

◆ inverse()

const MatrixNd & polyfem::assembler::ElasticityAssembler::OutputStress::inverse ( )
private

Definition at line 24 of file Assembler.cpp.

References deformation_, inverse_, and inverse_ready_.

◆ tensor()

const MatrixNd & polyfem::assembler::ElasticityAssembler::OutputStress::tensor ( ElasticityTensorType  type)

Definition at line 46 of file Assembler.cpp.

References polyfem::CAUCHY, polyfem::utils::determinant(), polyfem::F, polyfem::utils::inverse(), and polyfem::PK1.

Referenced by polyfem::assembler::ElasticityAssembler::assign_stress_tensor(), and polyfem::assembler::ElasticityAssembler::compute_output_values().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ computed_

std::array<bool, 3> polyfem::assembler::ElasticityAssembler::OutputStress::computed_ {}
private

Definition at line 499 of file Assembler.hpp.

◆ deformation_

const MatrixNd& polyfem::assembler::ElasticityAssembler::OutputStress::deformation_
private

Definition at line 497 of file Assembler.hpp.

Referenced by deformation(), and inverse().

◆ determinant_

double polyfem::assembler::ElasticityAssembler::OutputStress::determinant_ = 0
private

Definition at line 503 of file Assembler.hpp.

◆ determinant_ready_

bool polyfem::assembler::ElasticityAssembler::OutputStress::determinant_ready_ = false
private

Definition at line 502 of file Assembler.hpp.

◆ energy

◆ has_stress

bool polyfem::assembler::ElasticityAssembler::OutputStress::has_stress = true

◆ inverse_

MatrixNd polyfem::assembler::ElasticityAssembler::OutputStress::inverse_
private

Definition at line 500 of file Assembler.hpp.

Referenced by inverse().

◆ inverse_ready_

bool polyfem::assembler::ElasticityAssembler::OutputStress::inverse_ready_ = false
private

Definition at line 501 of file Assembler.hpp.

Referenced by inverse().

◆ native

◆ native_type

ElasticityTensorType polyfem::assembler::ElasticityAssembler::OutputStress::native_type = ElasticityTensorType::CAUCHY

◆ needs_energy

◆ needs_stress

◆ tensors_

std::array<MatrixNd, 3> polyfem::assembler::ElasticityAssembler::OutputStress::tensors_
private

Definition at line 498 of file Assembler.hpp.


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