MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
MAST::StressStrainOutputBase::Data Class Reference

Detailed Description

This class provides a mechanism to store stress/strain values, their derivatives and sensitivity values corresponding to a specific quadrature point on the element.

Definition at line 72 of file stress_output_base.h.

#include <stress_output_base.h>

Public Member Functions

 Data (const RealVectorX &stress, const RealVectorX &strain, const libMesh::Point &qp, const libMesh::Point &xyz, Real JxW)
 
void clear_sensitivity_data ()
 
Real dvon_Mises_stress_dp (const MAST::FunctionBase &f) const
 
RealVectorX dvon_Mises_stress_dX () const
 
const RealMatrixXget_dstrain_dX () const
 
const RealMatrixXget_dstress_dX () const
 
const RealVectorXget_strain_sensitivity (const MAST::FunctionBase &f) const
 @ returns the sensitivity of the data with respect to a function More...
 
const RealVectorXget_stress_sensitivity (const MAST::FunctionBase &f) const
 @ returns the sensitivity of the data with respect to a function More...
 
bool has_stress_sensitivity (const MAST::FunctionBase &f) const
 @ returns true if sensitivity data is available for function f . More...
 
const libMesh::Point & point_location_in_element_coordinate () const
 
Real quadrature_point_JxW () const
 
void set_derivatives (const RealMatrixX &dstress_dX, const RealMatrixX &dstrain_dX)
 adds the derivative data More...
 
void set_sensitivity (const MAST::FunctionBase &f, const RealVectorX &dstress_df, const RealVectorX &dstrain_df)
 sets the sensitivity of the data with respect to a function More...
 
const RealVectorXstrain () const
 
const RealVectorXstress () const
 
Real von_Mises_stress () const
 

Protected Attributes

RealMatrixX _dstrain_dX
 derivative of strain data wrt state vector More...
 
RealMatrixX _dstress_dX
 derivative of stress wrt state vector More...
 
Real _JxW
 quadrature point JxW (product of transformation Jacobian and quadrature weight) for use in definition of functionals More...
 
libMesh::Point _qp
 quadrature point location in element coordinates More...
 
RealVectorX _strain
 strain data More...
 
std::map< const MAST::FunctionBase *, RealVectorX_strain_sensitivity
 map of sensitivity of the strain with respect to a parameter More...
 
RealVectorX _stress
 stress data More...
 
std::map< const MAST::FunctionBase *, RealVectorX_stress_sensitivity
 map of sensitivity of the stress with respect to a parameter More...
 
libMesh::Point _xyz
 quadrature point location in physical coordinates More...
 

Constructor & Destructor Documentation

◆ Data()

MAST::StressStrainOutputBase::Data::Data ( const RealVectorX stress,
const RealVectorX strain,
const libMesh::Point &  qp,
const libMesh::Point &  xyz,
Real  JxW 
)

Definition at line 37 of file stress_output_base.cpp.

Member Function Documentation

◆ clear_sensitivity_data()

void MAST::StressStrainOutputBase::Data::clear_sensitivity_data ( )

Definition at line 58 of file stress_output_base.cpp.

◆ dvon_Mises_stress_dp()

Real MAST::StressStrainOutputBase::Data::dvon_Mises_stress_dp ( const MAST::FunctionBase f) const
Returns
derivative of von Mises stress wrt sensitivity parameter

Definition at line 237 of file stress_output_base.cpp.

◆ dvon_Mises_stress_dX()

RealVectorX MAST::StressStrainOutputBase::Data::dvon_Mises_stress_dX ( ) const
Returns
derivative of von Mises stress wrt state vector

Definition at line 200 of file stress_output_base.cpp.

◆ get_dstrain_dX()

const RealMatrixX & MAST::StressStrainOutputBase::Data::get_dstrain_dX ( ) const
Returns
the derivative data

Definition at line 110 of file stress_output_base.cpp.

◆ get_dstress_dX()

const RealMatrixX & MAST::StressStrainOutputBase::Data::get_dstress_dX ( ) const
Returns
the derivative data

Definition at line 103 of file stress_output_base.cpp.

◆ get_strain_sensitivity()

const RealVectorX & MAST::StressStrainOutputBase::Data::get_strain_sensitivity ( const MAST::FunctionBase f) const

@ returns the sensitivity of the data with respect to a function

Definition at line 168 of file stress_output_base.cpp.

◆ get_stress_sensitivity()

const RealVectorX & MAST::StressStrainOutputBase::Data::get_stress_sensitivity ( const MAST::FunctionBase f) const

@ returns the sensitivity of the data with respect to a function

Definition at line 152 of file stress_output_base.cpp.

◆ has_stress_sensitivity()

bool MAST::StressStrainOutputBase::Data::has_stress_sensitivity ( const MAST::FunctionBase f) const

@ returns true if sensitivity data is available for function f .

Definition at line 140 of file stress_output_base.cpp.

◆ point_location_in_element_coordinate()

const libMesh::Point & MAST::StressStrainOutputBase::Data::point_location_in_element_coordinate ( ) const
Returns
the point at which stress is evaluated, in the element coordinate system.

Definition at line 67 of file stress_output_base.cpp.

◆ quadrature_point_JxW()

Real MAST::StressStrainOutputBase::Data::quadrature_point_JxW ( ) const
Returns
the quadrature point JxW

Definition at line 117 of file stress_output_base.cpp.

◆ set_derivatives()

void MAST::StressStrainOutputBase::Data::set_derivatives ( const RealMatrixX dstress_dX,
const RealMatrixX dstrain_dX 
)

adds the derivative data

Definition at line 89 of file stress_output_base.cpp.

◆ set_sensitivity()

void MAST::StressStrainOutputBase::Data::set_sensitivity ( const MAST::FunctionBase f,
const RealVectorX dstress_df,
const RealVectorX dstrain_df 
)

sets the sensitivity of the data with respect to a function

Definition at line 124 of file stress_output_base.cpp.

◆ strain()

const RealVectorX & MAST::StressStrainOutputBase::Data::strain ( ) const
Returns
strain

Definition at line 82 of file stress_output_base.cpp.

◆ stress()

const RealVectorX & MAST::StressStrainOutputBase::Data::stress ( ) const
Returns
stress

Definition at line 74 of file stress_output_base.cpp.

◆ von_Mises_stress()

Real MAST::StressStrainOutputBase::Data::von_Mises_stress ( ) const
Returns
von Mises stress

Definition at line 183 of file stress_output_base.cpp.

Member Data Documentation

◆ _dstrain_dX

RealMatrixX MAST::StressStrainOutputBase::Data::_dstrain_dX
protected

derivative of strain data wrt state vector

Definition at line 211 of file stress_output_base.h.

◆ _dstress_dX

RealMatrixX MAST::StressStrainOutputBase::Data::_dstress_dX
protected

derivative of stress wrt state vector

Definition at line 206 of file stress_output_base.h.

◆ _JxW

Real MAST::StressStrainOutputBase::Data::_JxW
protected

quadrature point JxW (product of transformation Jacobian and quadrature weight) for use in definition of functionals

Definition at line 230 of file stress_output_base.h.

◆ _qp

libMesh::Point MAST::StressStrainOutputBase::Data::_qp
protected

quadrature point location in element coordinates

Definition at line 217 of file stress_output_base.h.

◆ _strain

RealVectorX MAST::StressStrainOutputBase::Data::_strain
protected

strain data

Definition at line 188 of file stress_output_base.h.

◆ _strain_sensitivity

std::map<const MAST::FunctionBase*, RealVectorX> MAST::StressStrainOutputBase::Data::_strain_sensitivity
protected

map of sensitivity of the strain with respect to a parameter

Definition at line 200 of file stress_output_base.h.

◆ _stress

RealVectorX MAST::StressStrainOutputBase::Data::_stress
protected

stress data

Definition at line 182 of file stress_output_base.h.

◆ _stress_sensitivity

std::map<const MAST::FunctionBase*, RealVectorX> MAST::StressStrainOutputBase::Data::_stress_sensitivity
protected

map of sensitivity of the stress with respect to a parameter

Definition at line 194 of file stress_output_base.h.

◆ _xyz

libMesh::Point MAST::StressStrainOutputBase::Data::_xyz
protected

quadrature point location in physical coordinates

Definition at line 223 of file stress_output_base.h.


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