KASKADE 7 development version
Namespaces | Functions
amirameshreader.hh File Reference
#include <algorithm>
#include <cstdint>
#include <iostream>
#include <memory>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <cassert>
#include <stdexcept>
#include <boost/timer/timer.hpp>
#include <boost/lexical_cast.hpp>
#include <dune/common/fvector.hh>
#include <amiramesh/AmiraMesh.h>
#include "fem/lagrangespace.hh"
#include "io/ioTools.hh"
#include "io/vtk.hh"
#include "utilities/detailed_exception.hh"

Go to the source code of this file.

Namespaces

namespace  Kaskade
 
 
namespace  Kaskade::AmiraMeshReader
 Reader for Amira meshes.
 
namespace  Kaskade::AmiraMeshReader::ImplementationDetails
 

Functions

std::string Kaskade::AmiraMeshReader::ImplementationDetails::exceptionMessage (std::string const &function, std::string const &gridfile, int line)
 
std::string Kaskade::AmiraMeshReader::ImplementationDetails::exceptionMessage (std::string const &function, std::string const &location, std::string const &component, int line)
 
template<class Source , class value_type , int components>
void Kaskade::AmiraMeshReader::ImplementationDetails::extractData (size_t const n, Source const *source, std::vector< Dune::FieldVector< value_type, components > > &data, bool verbose=false)
 
template<class value_type , int components>
bool Kaskade::AmiraMeshReader::ImplementationDetails::readData (AmiraMesh &am, char const *location, char const *name, std::vector< Dune::FieldVector< value_type, components > > &out, bool verbose=false)
 
bool Kaskade::AmiraMeshReader::ImplementationDetails::boundaryIdByByte (std::string const &gridFile)
 
template<class Scalar , class Grid , class ScalarEd >
void Kaskade::AmiraMeshReader::ImplementationDetails::readEdgePositions (Grid const &grid, Dune::GridFactory< Grid > const &factory, AmiraMesh &am, std::vector< Dune::FieldVector< ScalarEd, Grid::dimension > > &edgeDisplacement)
 
template<class Grid , class Scalar , class ScalarEd = Scalar>
std::unique_ptr< Grid > Kaskade::AmiraMeshReader::readGrid (std::string const &gridfile, int initialGridSize=0, std::vector< int > *boundaryIds=nullptr, std::vector< Dune::FieldVector< ScalarEd, Grid::dimension > > *edgeDisplacement=nullptr, double scale=1.0)
 function reading an Amira mesh file in ASCII format. More...
 
template<class Grid , class Scalar , class ScalarEd = Scalar, class Deformation >
std::unique_ptr< Grid > Kaskade::AmiraMeshReader::readGrid (std::string const &gridfile, Deformation const &deformation, int initialGridSize=0, std::vector< int > *boundaryIds=nullptr, std::vector< Dune::FieldVector< ScalarEd, Grid::dimension > > *edgeDisplacement=nullptr, double scale=1.0)
 function reading an Amira mesh file in ASCII format. More...
 
template<class Grid , class Scalar , class ScalarEd = Scalar>
std::unique_ptr< Grid > Kaskade::AmiraMeshReader::mergeGrids (std::string const &gridfile1, std::string const &gridfile2, int initialGridSize=0, std::vector< int > *boundaryIds=nullptr, double scale1=1.0, double scale2=1.0)
 function joining two Amira mesh files in ASCII format into one grid. More...
 
template<class DataType , class FunctionSpaceElement >
void Kaskade::AmiraMeshReader::readData (std::string const &datafile, std::string const &dataname, std::string const &componentname, FunctionSpaceElement &data, bool verbose=false)
 function reading additional data from an Amira mesh file in ASCII format. More...
 
template<class Scalar , int numberOfComponents>
void Kaskade::AmiraMeshReader::readData (std::string const &datafile, std::string const &dataname, std::string const &componentname, std::vector< Dune::FieldVector< Scalar, numberOfComponents > > &data)
 function reading additional data for each vertex from an Amira mesh file in ASCII format. More...
 
template<class VarSetDesc >
void Kaskade::AmiraMeshReader::readDeformationIntoVariableSetRepresentation (std::string const &gridfile, std::string const &datafile, typename VarSetDesc::VariableSet &data)
 function reading return a FE-function describing the deformation. More...
 
template<class FunctionSpaceElement , class FileScalar = float>
void Kaskade::AmiraMeshReader::readDeformation (std::string const &gridfile, std::string const &datafile, FunctionSpaceElement &data)
 function reading return a fe-function describing the deformation. More...
 
template<class GridView , class FunctionSpaceElement , class FileScalar = float>
void Kaskade::AmiraMeshReader::readDeformation2 (GridView const &gridView, std::string const &datafile, FunctionSpaceElement &data)
 
template<class Grid >
void Kaskade::AmiraMeshReader::boundaryConditionsToScalarField (std::string const &gridfile, std::string const &savefilename=std::string("boundaryConditions"), int initialGridSize=0)
 Read boundary indices and save as scalar field in .vtu-file. More...