Go to the source code of this file.
|
| registerMooseObject ("MooseApp", MeshInfo) |
|
void | to_json (nlohmann::json &json, const std::map< BoundaryID, MeshInfo::SidesetInfo > &sidesets) |
|
void | dataStore (std::ostream &stream, MeshInfo::SidesetInfo &sideset_info, void *context) |
|
void | dataLoad (std::istream &stream, MeshInfo::SidesetInfo &sideset_info, void *context) |
|
void | to_json (nlohmann::json &json, const std::map< SubdomainID, MeshInfo::SubdomainInfo > &subdomains) |
|
void | dataStore (std::ostream &stream, MeshInfo::SubdomainInfo &subdomain_info, void *context) |
|
void | dataLoad (std::istream &stream, MeshInfo::SubdomainInfo &subdomain_info, void *context) |
|
◆ dataLoad() [1/2]
Definition at line 250 of file MeshInfo.C.
std::vector< std::pair< dof_id_type, unsigned int > > sides
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
◆ dataLoad() [2/2]
Definition at line 396 of file MeshInfo.C.
std::vector< dof_id_type > elems
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
◆ dataStore() [1/2]
Definition at line 242 of file MeshInfo.C.
void storeHelper(std::ostream &stream, P &data, void *context)
Scalar helper routine.
std::vector< std::pair< dof_id_type, unsigned int > > sides
◆ dataStore() [2/2]
Definition at line 388 of file MeshInfo.C.
std::vector< dof_id_type > elems
void storeHelper(std::ostream &stream, P &data, void *context)
Scalar helper routine.
◆ registerMooseObject()
registerMooseObject |
( |
"MooseApp" |
, |
|
|
MeshInfo |
|
|
) |
| |
◆ to_json() [1/2]
Definition at line 214 of file MeshInfo.C.
216 for (
const auto & pair : sidesets)
220 nlohmann::json sideset_json;
221 sideset_json[
"id"] = sideset_info.
id;
222 if (sideset_info.
name.size())
223 sideset_json[
"name"] = sideset_info.
name;
226 auto & sides_json = sideset_json[
"sides"];
228 for (
const std::pair<dof_id_type, unsigned int> & pair : sideset_info.
sides)
230 nlohmann::json side_json;
231 side_json[
"elem_id"] = pair.first;
232 side_json[
"side"] = pair.second;
233 sides_json.push_back(side_json);
237 json.push_back(sideset_json);
Helper struct for defining information about a single sideset.
std::vector< std::pair< dof_id_type, unsigned int > > sides
if(!dmm->_nl) SETERRQ(PETSC_COMM_WORLD
◆ to_json() [2/2]
Definition at line 366 of file MeshInfo.C.
368 for (
const auto & pair : subdomains)
372 nlohmann::json subdomain_json;
373 subdomain_json[
"id"] = subdomain_info.
id;
374 if (subdomain_info.
name.size())
375 subdomain_json[
"name"] = subdomain_info.
name;
376 if (subdomain_info.
elems.size())
378 auto & sides_json = subdomain_json[
"elems"];
379 for (
const auto &
id : subdomain_info.
elems)
380 sides_json.push_back(
id);
383 json.push_back(subdomain_json);
std::vector< dof_id_type > elems
Helper struct for defining information about a single subdomain.
if(!dmm->_nl) SETERRQ(PETSC_COMM_WORLD