Dune Core Modules (2.9.0)
gmshwriter.hh
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
94 void outputElements(std::ofstream& file, const std::vector<int>& physicalEntities, const std::vector<int>& physicalBoundaries) const {
177 file << nodeIndex << " " << globalCoord[0] << " " << globalCoord[1] << " " << globalCoord[2] << std::endl;
Geometry geometry() const
obtain geometric realization of the entity
Definition: entity.hh:141
GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition: entity.hh:146
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:125
constexpr bool isPyramid() const
Return true if entity is a pyramid.
Definition: type.hh:315
constexpr bool isTetrahedron() const
Return true if entity is a tetrahedron.
Definition: type.hh:310
constexpr bool isPrism() const
Return true if entity is a prism.
Definition: type.hh:320
constexpr bool isVertex() const
Return true if entity is a vertex.
Definition: type.hh:290
constexpr bool isTriangle() const
Return true if entity is a triangle.
Definition: type.hh:300
constexpr bool isLine() const
Return true if entity is a line segment.
Definition: type.hh:295
constexpr bool isQuadrilateral() const
Return true if entity is a quadrilateral.
Definition: type.hh:305
constexpr bool isHexahedron() const
Return true if entity is a hexahedron.
Definition: type.hh:325
GmshWriter(const GridView &gridView, int numDigits=6)
Constructor expecting GridView of Grid to be written.
Definition: gmshwriter.hh:187
void setPrecision(int numDigits)
Set the number of digits to be used when writing the vertices. By default is 6.
Definition: gmshwriter.hh:193
void write(const std::string &fileName, const std::vector< int > &physicalEntities=std::vector< int >(), const std::vector< int > &physicalBoundaries=std::vector< int >()) const
Write given grid in Gmsh 2.0 compatible ASCII file.
Definition: gmshwriter.hh:218
Index index(const EntityType &e) const
Map entity to starting index in array for dof block.
Definition: mcmgmapper.hh:171
A few common exception classes.
Different resources needed by all grid implementations.
const IndexSet & indexSet() const
obtain the index set
Definition: gridview.hh:191
int size(int codim) const
obtain number of entities in a given codimension
Definition: gridview.hh:197
static constexpr int dimension
The dimension of the grid.
Definition: gridview.hh:148
static constexpr int dimensionworld
The dimension of the world the grid lives in.
Definition: gridview.hh:151
constexpr GeometryType vertex
GeometryType representing a vertex.
Definition: type.hh:506
MCMGLayout mcmgElementLayout()
layout for elements (codim-0 entities)
Definition: mcmgmapper.hh:97
Mapper for multiple codim and multiple geometry types.
A unique label for each type of element that can occur in a grid.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)