G+Smo
24.08.0
Geometry + Simulation Modules
|
This class represents a group of vtk (Paraview) files that refer to one multiPatch, for one timestep.
This class is used by gsParaviewCollection to manage said files, but can be used by the user explicitly as well.
Public Member Functions | |
template<class E > | |
void | addField (const expr::_expr< E > &expr, std::string label) |
Evaluates an expression, and writes that data to the vtk files. More... | |
template<class T > | |
void | addField (const gsField< T > field, std::string label) |
Evaluates a gsField ( the function part ), and writes that data to the vtk files. More... | |
template<class E , typename... Rest> | |
void | addFields (std::vector< std::string > labels, const expr::_expr< E > &expr, Rest...rest) |
Recursive form of addField() More... | |
template<class T , typename... Rest> | |
void | addFields (std::vector< std::string > labels, const gsField< T > field, Rest...rest) |
Recursive form of addField() More... | |
const std::vector< std::string > | filenames () |
Returns the names of the files created by this gsParaviewDataSet. More... | |
gsParaviewDataSet (std::string basename, gsMultiPatch< real_t > *const geometry, gsExprEvaluator< real_t > *eval=nullptr, gsOptionList options=defaultOptions()) | |
Basic constructor. More... | |
Static Public Member Functions | |
static gsOptionList | defaultOptions () |
Accessor to the current options. | |
Private Member Functions | |
template<class E > | |
std::vector< std::string > | toVTK (const expr::_expr< E > &expr, unsigned nPts=1000, unsigned precision=5, std::string label="SolutionField", const bool &export_base64=false) |
Evaluates one expression over all patches and returns all <DataArray> xml tags as a vector of strings, as no points are exported, no need to enforce 1:3D fields. More... | |
Static Private Member Functions | |
template<class T > | |
static std::string | toDataArray (const gsMatrix< T > &points, const std::string label, unsigned precision, const bool &export_base64) |
Formats the coordinates of points as a <DataArray> xml tag for ParaView export. More... | |
template<class T > | |
static std::vector< std::string > | toVTK (const gsFunctionSet< T > &funSet, unsigned nPts=1000, unsigned precision=5, std::string label="", const bool &export_base64=false) |
Evaluates gsFunctionSet over all pieces( patches ) and returns all <DataArray> xml tags as a vector of strings. More... | |
gsParaviewDataSet | ( | std::string | basename, |
gsMultiPatch< real_t > *const | geometry, | ||
gsExprEvaluator< real_t > * | eval = nullptr , |
||
gsOptionList | options = defaultOptions() |
||
) |
Basic constructor.
basename | The basename that will be used to create all the individual filenames |
geometry | A gsMultiPatch of the geometry that will be exported and where the fields are defined |
eval | Optional. A gsExprEvaluator, necessary when working with gsExpressions for evaluation purposes |
options | A set of options, if unspecified, defaultOptions() is called. |
|
inline |
Evaluates an expression, and writes that data to the vtk files.
E |
expr | The gsExpression to be evaluated |
label | The name that will be displayed in Paraview for this field. |
|
inline |
|
inline |
Recursive form of addField()
E | |
...Rest |
labels | Vector of strings, containing the names of the fields as they will be shown in ParaView. |
expr | The expressions to be evaluated ( arbitrary number of them ) |
...rest |
|
inline |
Recursive form of addField()
T | |
...Rest |
labels | Vector of strings, containing the names of the fields as they will be shown in ParaView. |
field | The gsFields to be evaluated ( arbitrary number of them ) |
...rest |
const std::vector< std::string > filenames | ( | ) |
Returns the names of the files created by this gsParaviewDataSet.
|
inlinestaticprivate |
Formats the coordinates of points as a <DataArray> xml tag for ParaView export.
T | Arithmetic type |
points | A gsMatrix<T> with the coordinates of the points, stored column-wise. Its size is (numDims, numPoints) |
label | A string with the label of the data |
precision | Number of decimal points in xml output |
export_base64 | (defaults true) export as base63 encoded string - ignore precision |
|
inlinestaticprivate |
Evaluates gsFunctionSet over all pieces( patches ) and returns all <DataArray> xml tags as a vector of strings.
T |
funSet | gsFunctionSet to be evaluated |
nPts | Number of evaluation points, per patch. |
precision | Number of decimal points in xml output |
label | |
export_base64 | export as base64 encoded string |
|
inlineprivate |
Evaluates one expression over all patches and returns all <DataArray> xml tags as a vector of strings, as no points are exported, no need to enforce 1:3D fields.
T |
expr | Expression to be evaluated |
label | The label with which the expression will appear in Paraview |
export_base64 | export as base64 encoded string |