|
dune-grid 2.12-git
|
Loading...
Searching...
No Matches
printgrid.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
37 // Move a point closer to basegeo's center by factor scale (used for drawing relative to the element)
49 void draw_line (std::ofstream &plotfile, const Coord &p1, const Coord &p2, std::string options) {
90 plotfile << "set terminal svg size " << size << "," << size << " enhanced background rgb 'white'" << std::endl;
110 Dune::FieldVector<typename GridType::ctype,2> max_coord (it->geometry().center()), min_coord (max_coord);
216 void printGrid (const GridType& grid, const Dune::MPIHelper& helper, std::string output_file = "printgrid",
220 printGrid(grid, output_file + "_" + std::to_string(helper.rank()), size, execute_plot, png, local_corner_indices, local_intersection_indices, outer_normals);
Dune::ParameterTree options
Mapper for multiple codim and multiple geometry types.
int size() const
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon=DefaultEpsilon< T, style >::value())
size_type dim() const
#define DUNE_THROW(E,...)
constexpr std::bool_constant<((II==value)||...)> contains(std::integer_sequence< T, II... >, std::integral_constant< T, value >)
MCMGLayout mcmgElementLayout()
layout for elements (codim-0 entities)
Definition mcmgmapper.hh:97
MCMGLayout mcmgVertexLayout()
layout for vertices (dim-0 entities)
Definition mcmgmapper.hh:107
Include standard header files.
void printGrid(const GridType &grid, std::string output_file, int size=2000, bool execute_plot=true, bool png=true, bool local_corner_indices=true, bool local_intersection_indices=true, bool outer_normals=true)
Print a grid as a gnuplot for testing and development.
Definition printgrid.hh:72
int rank() const
Mesh entities of codimension 0 ("elements") allow to visit all intersections with "neighboring" eleme...
Definition common/intersectioniterator.hh:83
Index index(const EntityType &e) const
Map entity to array index.
Definition mapper.hh:122
Index subIndex(const typename G::Traits::template Codim< 0 >::Entity &e, int i, unsigned int codim) const
Map subentity i of codim cc of a codim 0 entity to array index.
Definition mapper.hh:136
Implementation class for a multiple codim and multiple geometry type mapper.
Definition mcmgmapper.hh:129
T c_str(T... args)
T close(T... args)
T endl(T... args)
T is_open(T... args)
T system(T... args)
T to_string(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8