|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <field_export.hpp>
Public Member Functions | |
| FieldExporter (const mesh::Mesh< Dim > &mesh, int subdivisions, VtkFormat format=VtkFormat::kBinary) | |
| FieldExporter (const FieldExporter &)=delete | |
| FieldExporter & | operator= (const FieldExporter &)=delete |
| FieldExporter (FieldExporter &&)=delete | |
| FieldExporter & | operator= (FieldExporter &&)=delete |
| ~FieldExporter ()=default | |
| FieldExporter & | h1 (const std::string &name, const fespace::DofMap< Dim > &dofs, const Vector &u_h) |
| FieldExporter & | hcurl (const std::string &name, const fespace::NedelecDofMap< Dim > &dofs, const Vector &e_h) |
| FieldExporter & | cell_scalars (std::string name, std::span< const Real > values) |
| Parent-cell data (one value per cell of the original mesh) broadcast to the sub-cells. | |
| FieldExporter & | cell_scalars (std::string name, std::span< const Complex > values) |
| void | write (std::ostream &out) const |
| void | write (const std::filesystem::path &file) const |
| const mesh::Subdivided< Dim > & | subdivision () const noexcept |
Writes fields on the n-fold subdivided mesh as point data. The sub-mesh duplicates its points per parent cell, so discontinuities are preserved; parent cell data can be broadcast to the sub-cells. Choose subdivisions of the order of the polynomial degree to resolve the fields.
| hpfem::io::FieldExporter< Dim >::FieldExporter | ( | const mesh::Mesh< Dim > & | mesh, |
| int | subdivisions, | ||
| VtkFormat | format = VtkFormat::kBinary |
||
| ) |
| InvalidArgument | if subdivisions < 1. |
|
delete |
|
delete |
|
default |
| FieldExporter & hpfem::io::FieldExporter< Dim >::cell_scalars | ( | std::string | name, |
| std::span< const Complex > | values | ||
| ) |
| FieldExporter & hpfem::io::FieldExporter< Dim >::cell_scalars | ( | std::string | name, |
| std::span< const Real > | values | ||
| ) |
Parent-cell data (one value per cell of the original mesh) broadcast to the sub-cells.
| FieldExporter & hpfem::io::FieldExporter< Dim >::h1 | ( | const std::string & | name, |
| const fespace::DofMap< Dim > & | dofs, | ||
| const Vector & | u_h | ||
| ) |
Scalar field u_h as point scalars <name>_re / <name>_im.
| InvalidArgument | if the DoF map belongs to another mesh. |
| FieldExporter & hpfem::io::FieldExporter< Dim >::hcurl | ( | const std::string & | name, |
| const fespace::NedelecDofMap< Dim > & | dofs, | ||
| const Vector & | e_h | ||
| ) |
Nédélec field as point vectors <name>_re / <name>_im and its curl as curl_<name>_re / curl_<name>_im (scalars in 2D, vectors in 3D).
| InvalidArgument | if the DoF map belongs to another mesh. |
|
delete |
|
delete |
|
inlinenoexcept |
| void hpfem::io::FieldExporter< Dim >::write | ( | const std::filesystem::path & | file | ) | const |
| InvalidArgument | if the file cannot be created. |
| void hpfem::io::FieldExporter< Dim >::write | ( | std::ostream & | out | ) | const |