Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added discontinuous stress plotting to systems_of_equations_ex6

  • Loading branch information...
commit 5dc9740a900706fec3fde46ee73504379c4aceed 1 parent 6fc25bb
David Knezevic authored
12 examples/systems_of_equations/systems_of_equations_ex6/systems_of_equations_ex6.C
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.