35 #include "libmesh/parallel.h" 57 libmesh_assert_greater(
_sigma0, 0.);
70 std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
74 for ( ; map_it != map_end; map_it++) {
76 std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
77 vec_it = map_it->second.begin(),
78 vec_end = map_it->second.end();
80 for ( ; vec_it != vec_end; vec_it++) {
83 e_val = (*vec_it)->von_Mises_stress();
84 JxW = (*vec_it)->quadrature_point_JxW();
111 const libMesh::dof_id_type e_id,
112 Real& dsigma_vm_val_df)
const {
116 libmesh_assert_greater(
_sigma0, 0.);
124 dsigma_vm_val_df = 0.;
127 std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
131 libmesh_assert(map_it != map_end);
133 std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
134 vec_it = map_it->second.begin(),
135 vec_end = map_it->second.end();
137 for ( ; vec_it != vec_end; vec_it++) {
140 e_val = (*vec_it)->von_Mises_stress();
141 de_val = (*vec_it)->dvon_Mises_stress_dp(f);
142 JxW = (*vec_it)->quadrature_point_JxW();
157 const libMesh::dof_id_type e_id,
158 Real& dsigma_vm_val_df)
const {
162 libmesh_assert_greater(
_sigma0, 0.);
170 dsigma_vm_val_df = 0.;
173 std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
177 libmesh_assert(map_it != map_end);
179 std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
180 vec_it = map_it->second.begin(),
181 vec_end = map_it->second.end();
183 for ( ; vec_it != vec_end; vec_it++) {
186 e_val = (*vec_it)->von_Mises_stress();
187 JxW_Vn = (*vec_it)->quadrature_point_JxW();
189 denom_sens += JxW_Vn;
205 libmesh_assert_greater(
_sigma0, 0.);
212 num_sens = RealVectorX::Zero(dq_dX.size()),
213 de_val = RealVectorX::Zero(dq_dX.size());
219 std::map<const libMesh::dof_id_type, std::vector<MAST::StressStrainOutputBase::Data*> >::const_iterator
224 libmesh_assert(map_it != map_end);
226 std::vector<MAST::StressStrainOutputBase::Data*>::const_iterator
227 vec_it = map_it->second.begin(),
228 vec_end = map_it->second.end();
231 for ( ; vec_it != vec_end; vec_it++) {
234 e_val = (*vec_it)->von_Mises_stress();
235 de_val = (*vec_it)->dvon_Mises_stress_dX();
236 JxW = (*vec_it)->quadrature_point_JxW();
MAST::NonlinearSystem & system()
Data structure provides the mechanism to store stress and strain output from a structural analysis...
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...
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.
KSStressStrainOutput()
default constructor
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...
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_for_all_elems()
calculates and returns the von Mises p-norm functional for all the elements that this object currentl...
Matrix< Real, Dynamic, 1 > RealVectorX
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...
virtual ~KSStressStrainOutput()
bool _if_stress_plot_mode
identifies the mode in which evaluation is peformed.
MAST::SystemInitialization * _system