35 #include "libmesh/parallel.h"    59     libmesh_assert_greater(
_sigma0, 0.);
    72     std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
    76     for ( ; map_it != map_end; map_it++) {
    78         std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
    79         vec_it   = map_it->second.begin(),
    80         vec_end  = map_it->second.end();
    82         for ( ; vec_it != vec_end; vec_it++) {
    85             e_val    =   (*vec_it)->von_Mises_stress();
    86             JxW      =   (*vec_it)->quadrature_point_JxW();
   113  const libMesh::dof_id_type e_id,
   114  Real& dsigma_vm_val_df) 
const {
   118     libmesh_assert_greater(
_sigma0, 0.);
   125     dsigma_vm_val_df = 0.;
   128     std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
   132     libmesh_assert(map_it != map_end);
   134     std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
   135     vec_it   = map_it->second.begin(),
   136     vec_end  = map_it->second.end();
   138     for ( ; vec_it != vec_end; vec_it++) {
   141         e_val    =   (*vec_it)->von_Mises_stress();
   142         de_val   =   (*vec_it)->dvon_Mises_stress_dp(f);
   143         JxW      =   (*vec_it)->quadrature_point_JxW();
   158  const libMesh::dof_id_type e_id,
   159  Real& dsigma_vm_val_df) 
const {
   163     libmesh_assert_greater(
_sigma0, 0.);
   169     dsigma_vm_val_df = 0.;
   172     std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
   176     libmesh_assert(map_it != map_end);
   178     std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
   179     vec_it   = map_it->second.begin(),
   180     vec_end  = map_it->second.end();
   182     for ( ; vec_it != vec_end; vec_it++) {
   185         e_val    =   (*vec_it)->von_Mises_stress();
   186         JxW_Vn   =   (*vec_it)->quadrature_point_JxW();
   201     libmesh_assert_greater(
_sigma0, 0.);
   208     de_val         = RealVectorX::Zero(dq_dX.size());
   214     std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
   219     libmesh_assert(map_it != map_end);
   221     std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
   222     vec_it   = map_it->second.begin(),
   223     vec_end  = map_it->second.end();
   226     for ( ; vec_it != vec_end; vec_it++) {
   229         e_val    =   (*vec_it)->von_Mises_stress();
   230         de_val   =   (*vec_it)->dvon_Mises_stress_dX();
   231         JxW      =   (*vec_it)->quadrature_point_JxW();
 
MAST::NonlinearSystem & system()
Data structure provides the mechanism to store stress and strain output from a structural analysis...
std::map< const libMesh::dof_id_type, std::vector< MAST::StressStrainOutputBase::Data * > > _boundary_stress_data
vector of stress with the associated location details 
Real _sigma0
reference stress value used in scaling volume. 
bool _primal_data_initialized
primal data, needed for sensitivity and adjoints 
Real _p_norm_stress
norm to be used for calculation of output stress function. 
SmoothRampStressStrainOutput()
default constructor 
bool _skip_comm_sum
If an output has contrinutions only from local processor then the user can request that the global co...
std::map< const libMesh::dof_id_type, std::vector< MAST::StressStrainOutputBase::Data * > > _stress_data
vector of stress with the associated location details 
virtual void functional_boundary_sensitivity_for_elem(const MAST::FunctionBase &f, const libMesh::dof_id_type e_id, Real &dsigma_vm_val_df) const
calculates and returns the boundary sensitivity of von Mises p-norm functional for the element e...
virtual void functional_state_derivartive_for_elem(const libMesh::dof_id_type e_id, RealVectorX &dq_dX) const
calculates and returns the derivative of von Mises p-norm functional wrt state vector for the specifi...
virtual void functional_sensitivity_for_elem(const MAST::FunctionBase &f, const libMesh::dof_id_type e_id, Real &dsigma_vm_val_df) const
calculates and returns the sensitivity of von Mises p-norm functional for the element e...
Matrix< Real, Dynamic, 1 > RealVectorX
virtual ~SmoothRampStressStrainOutput()
bool _if_stress_plot_mode
identifies the mode in which evaluation is peformed. 
virtual void functional_for_all_elems()
calculates and returns the von Mises p-norm functional for all the elements that this object currentl...
MAST::SystemInitialization * _system