OGS
|
Definition in file IntegrationPointWriter.cpp.
#include "IntegrationPointWriter.h"
#include <nlohmann/json.hpp>
#include "MeshLib/Mesh.h"
#include "MeshLib/Utils/getOrCreateMeshProperty.h"
Go to the source code of this file.
Namespaces | |
namespace | MeshLib |
Functions | |
static MeshLib::IntegrationPointMetaData | addIntegrationPointData (MeshLib::Mesh &mesh, MeshLib::IntegrationPointWriter const &writer) |
static void | addIntegrationPointMetaData (MeshLib::Mesh &mesh, std::vector< MeshLib::IntegrationPointMetaData > const &meta_data) |
static MeshLib::IntegrationPointMetaData | extractIntegrationPointMetaData (json const &meta_data, std::string const &name) |
void | MeshLib::addIntegrationPointDataToMesh (MeshLib::Mesh &mesh, std::vector< std::unique_ptr< IntegrationPointWriter > > const &integration_point_writer) |
IntegrationPointMetaData | MeshLib::getIntegrationPointMetaData (MeshLib::Properties const &properties, std::string const &name) |
|
static |
Adds the integration point data and creates meta data for it.
Returns meta data for the written integration point data.
Definition at line 23 of file IntegrationPointWriter.cpp.
References MeshLib::Mesh::getNumberOfElements(), MeshLib::getOrCreateMeshProperty(), MeshLib::IntegrationPointWriter::integrationOrder(), MeshLib::IntegrationPoint, MeshLib::IntegrationPointWriter::name(), MeshLib::IntegrationPointWriter::numberOfComponents(), and MeshLib::IntegrationPointWriter::values().
Referenced by MeshLib::addIntegrationPointDataToMesh().
|
static |
Adds integration point meta data as char mesh property encoded in JSON format, which is then stored as VTK's field data.
Definition at line 48 of file IntegrationPointWriter.cpp.
References MeshLib::getOrCreateMeshProperty(), and MeshLib::IntegrationPoint.
Referenced by MeshLib::addIntegrationPointDataToMesh().
|
static |
For the given json object and the name extract integration point meta data, or fail if no meta data was found for the given name.
Definition at line 75 of file IntegrationPointWriter.cpp.
References OGS_FATAL.
Referenced by MeshLib::getIntegrationPointMetaData().