diff --git a/man/mesh2D.Rd b/man/mesh2D.Rd index 734eb8c..a578649 100644 --- a/man/mesh2D.Rd +++ b/man/mesh2D.Rd @@ -2,7 +2,17 @@ \alias{mesh2D} \title{Parse a 2D mesh file and plot the data} \usage{ -plotMesh(readMeshFileATLAS() +Plot a mesh: +plotMesh(readMeshFileATLAS()) + +Plot the mesh for a list of material domains: +plotMesh(readMeshFileATLAS(), ) + +Plot the mesh for a list of material domains, specify if solid domains are shown: +plotMesh(readMeshFileATLAS("data/pre_geom2D.atl"), , ) + +Plot the mesh for a list of material domains, specify if solid domains and edges are shown: +plotMesh(readMeshFileATLAS("data/pre_geom2D.atl"), , ,) } \description{ Mesh files are used in FEM solutions for PDE problems to describe the geometry of the problem and the materials. @@ -10,7 +20,17 @@ Mesh files are used in FEM solutions for PDE problems to describe the geometry o This package is used to parse a 2D mesh file in ATLAS format and plot the 2D mesh using a plot3D function. The function readMeshFileATLAS is loading a mesh data file in ATLAS format. Then use plotMesh to plot the data (elements and nodes) composing the mesh. } \examples{ -plotMesh(readMeshFileATLAS("data/pre_geom2D.atl") +Plot a mesh: +plotMesh(readMeshFileATLAS("data/pre_geom2D.atl")) + +Plot the mesh for a list of material domains (1,2 and 4): +plotMesh(readMeshFileATLAS("data/pre_geom2D.atl"), c(1:2,4)) + +Plot the mesh for a list of material domains (1,3), specify to show only material domains: +plotMesh(readMeshFileATLAS("data/pre_geom2D.atl"), c(1,3), showElem=TRUE) + +Plot the mesh for a list of material domains (2,4), specify to show as wireframes: +plotMesh(readMeshFileATLAS("data/pre_geom2D.atl"), c(2,4), showElem=FALSE, showEdges=FALSE) } \figure{ plot_mesh_example.png}{options: width="60\%" alt="Figure: plot_mesh_example.png"