Permalink
Browse files

Added discontinuous stress plotting to systems_of_equations_ex6

  • Loading branch information...
1 parent 6fc25bb commit 5dc9740a900706fec3fde46ee73504379c4aceed David Knezevic committed Mar 7, 2014
@@ -255,7 +255,17 @@ int main (int argc, char** argv)
// Plot the solution
#ifdef LIBMESH_HAVE_EXODUS_API
- ExodusII_IO (mesh).write_equation_systems("displacement.e",equation_systems);
+
+ ExodusII_IO exo_io(mesh);
+
+ // First plot the displacement field using a nodal plot
+ std::set<std::string> system_names;
+ system_names.insert("Elasticity");
+ exo_io.write_equation_systems("displacement_and_stress.exo",equation_systems,&system_names);
+
+ // then append element-based discontinuous plots of the stresses
+ exo_io.write_element_data(equation_systems);
+
#endif // #ifdef LIBMESH_HAVE_EXODUS_API
// All done.

0 comments on commit 5dc9740

Please sign in to comment.