Commit 49df5686 authored by Heinrich Schindler's avatar Heinrich Schindler
Browse files

Optionally plot the mesh.

parent 70689534
......@@ -19,6 +19,7 @@ int main(int argc, char * argv[]) {
"fieldmap/MPLIST.lis", "fieldmap/PRNSOL.lis", "micron");
fm.EnableMirrorPeriodicityX();
fm.PrintRange();
fm.PrintMaterials();
ViewField fieldView;
fieldView.SetComponent(&fm);
......@@ -26,5 +27,16 @@ int main(int argc, char * argv[]) {
fieldView.SetArea(-0.01, 0., 0.01, 0.02);
fieldView.PlotContour();
ViewFEMesh meshView;
constexpr bool plotMesh = true;
if (plotMesh) {
meshView.SetComponent(&fm);
meshView.SetArea(-0.01, 0., 0.01, 0.02);
meshView.SetFillMeshWithBorders();
meshView.SetFillColor(1, kCyan + 1);
meshView.EnableAxes();
meshView.Plot();
}
app.Run();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment