Loading [MathJax]/extensions/tex2jax.js
PolyFEM
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
polyfem::io::OutGeometryData::ExportOptions Struct Reference

different export flags More...

#include <OutData.hpp>

Public Member Functions

 ExportOptions (const json &args, const bool is_mesh_linear, const bool is_problem_scalar)
 initialize the flags based on the input args
 
std::string file_extension () const
 return the extension of the output paraview files depending on use_hdf5
 
bool export_field (const std::string &field) const
 

Public Attributes

std::vector< std::string > fields
 
bool volume
 
bool surface
 
bool wire
 
bool points
 
bool contact_forces
 
bool friction_forces
 
bool normal_adhesion_forces
 
bool tangential_adhesion_forces
 
bool forces
 
bool jacobian_validity
 
bool use_sampler
 
bool boundary_only
 
bool material_params
 
bool body_ids
 
bool sol_on_grid
 
bool velocity
 
bool acceleration
 
bool tensor_values
 
bool scalar_values
 
bool discretization_order
 
bool nodes
 
bool use_spline
 
bool reorder_output
 
bool use_hdf5
 

Detailed Description

different export flags

Definition at line 36 of file OutData.hpp.

Constructor & Destructor Documentation

◆ ExportOptions()

polyfem::io::OutGeometryData::ExportOptions::ExportOptions ( const json args,
const bool  is_mesh_linear,
const bool  is_problem_scalar 
)

initialize the flags based on the input args

Parameters
[in]argsinput arguments used to set most of the flags
[in]is_mesh_linearif the mesh is linear
[in]is_problem_scalarif the problem is scalar

Definition at line 1085 of file OutData.cpp.

Member Function Documentation

◆ export_field()

bool polyfem::io::OutGeometryData::ExportOptions::export_field ( const std::string &  field) const

Definition at line 1080 of file OutData.cpp.

References fields.

Referenced by polyfem::io::OutGeometryData::save_contact_surface(), polyfem::io::OutGeometryData::save_points(), polyfem::io::OutGeometryData::save_surface(), polyfem::io::OutGeometryData::save_volume(), polyfem::io::OutGeometryData::save_volume_vector_field(), and polyfem::io::OutGeometryData::save_wire().

Here is the caller graph for this function:

◆ file_extension()

std::string polyfem::io::OutGeometryData::ExportOptions::file_extension ( ) const
inline

return the extension of the output paraview files depending on use_hdf5

Returns
either hdf or vtu

Definition at line 78 of file OutData.hpp.

References use_hdf5.

Referenced by polyfem::io::OutGeometryData::save_vtu().

Here is the caller graph for this function:

Member Data Documentation

◆ acceleration

bool polyfem::io::OutGeometryData::ExportOptions::acceleration

Definition at line 57 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ body_ids

bool polyfem::io::OutGeometryData::ExportOptions::body_ids

◆ boundary_only

bool polyfem::io::OutGeometryData::ExportOptions::boundary_only

◆ contact_forces

bool polyfem::io::OutGeometryData::ExportOptions::contact_forces

◆ discretization_order

bool polyfem::io::OutGeometryData::ExportOptions::discretization_order

Definition at line 60 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ fields

std::vector<std::string> polyfem::io::OutGeometryData::ExportOptions::fields

Definition at line 38 of file OutData.hpp.

Referenced by export_field().

◆ forces

bool polyfem::io::OutGeometryData::ExportOptions::forces

Definition at line 48 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ friction_forces

bool polyfem::io::OutGeometryData::ExportOptions::friction_forces

◆ jacobian_validity

bool polyfem::io::OutGeometryData::ExportOptions::jacobian_validity

Definition at line 49 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ material_params

bool polyfem::io::OutGeometryData::ExportOptions::material_params

◆ nodes

bool polyfem::io::OutGeometryData::ExportOptions::nodes

Definition at line 61 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ normal_adhesion_forces

bool polyfem::io::OutGeometryData::ExportOptions::normal_adhesion_forces

◆ points

bool polyfem::io::OutGeometryData::ExportOptions::points

◆ reorder_output

bool polyfem::io::OutGeometryData::ExportOptions::reorder_output

Definition at line 64 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::export_data().

◆ scalar_values

bool polyfem::io::OutGeometryData::ExportOptions::scalar_values

Definition at line 59 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ sol_on_grid

bool polyfem::io::OutGeometryData::ExportOptions::sol_on_grid

Definition at line 55 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ surface

bool polyfem::io::OutGeometryData::ExportOptions::surface

Definition at line 41 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_vtu().

◆ tangential_adhesion_forces

bool polyfem::io::OutGeometryData::ExportOptions::tangential_adhesion_forces

◆ tensor_values

bool polyfem::io::OutGeometryData::ExportOptions::tensor_values

Definition at line 58 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ use_hdf5

◆ use_sampler

bool polyfem::io::OutGeometryData::ExportOptions::use_sampler

◆ use_spline

bool polyfem::io::OutGeometryData::ExportOptions::use_spline

Definition at line 63 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ velocity

bool polyfem::io::OutGeometryData::ExportOptions::velocity

Definition at line 56 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_volume().

◆ volume

bool polyfem::io::OutGeometryData::ExportOptions::volume

Definition at line 40 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_vtu().

◆ wire

bool polyfem::io::OutGeometryData::ExportOptions::wire

Definition at line 42 of file OutData.hpp.

Referenced by polyfem::io::OutGeometryData::save_vtu().


The documentation for this struct was generated from the following files: