|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <material.hpp>
Public Member Functions | |
| MaterialMap (Material background=Material::vacuum()) | |
| MaterialMap & | set (mesh::Tag tag, Material material) |
| const Material & | background () const noexcept |
| bool | has (mesh::Tag tag) const |
| const Material & | at (mesh::Tag tag) const |
| Material of a tag, the background if unlisted. | |
| MaterialMap & | set_cell (Index cell, Material material) |
| void | clear_cells () |
| Removes all per-cell overrides. | |
| Index | num_cell_overrides () const noexcept |
| template<int Dim> | |
| const Material & | of_cell (const mesh::Mesh< Dim > &mesh, Index c) const |
| Material of cell c of a mesh: the cell's override if set, otherwise its tag's. | |
| bool | is_isotropic () const |
| True if every material of the map (background, tags, cell overrides) is isotropic. | |
Materials by cell tag; cells whose tag is not listed (including untagged cells) get the background material. Individual cells may override their tag's material (set_cell), e.g. for a temperature-dependent permittivity that varies from cell to cell.
|
inlineexplicit |
Material of a tag, the background if unlisted.
|
inlinenoexcept |
|
inline |
Removes all per-cell overrides.
|
inline |
| bool hpfem::materials::MaterialMap::is_isotropic | ( | ) | const |
True if every material of the map (background, tags, cell overrides) is isotropic.
|
inlinenoexcept |
|
inline |
Material of cell c of a mesh: the cell's override if set, otherwise its tag's.
| MaterialMap & hpfem::materials::MaterialMap::set | ( | mesh::Tag | tag, |
| Material | material | ||
| ) |
| InvalidArgument | for mesh::kNoTag (untagged cells always use the background). |
| MaterialMap & hpfem::materials::MaterialMap::set_cell | ( | Index | cell, |
| Material | material | ||
| ) |
Overrides the material of one cell (takes precedence over the tag).
| InvalidArgument | for a negative cell index. |