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 246 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 388 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 238 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 380 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 210 of file MeshInfo.C.
212 for (
const auto & pair : sidesets)
216 nlohmann::json sideset_json;
217 sideset_json[
"id"] = sideset_info.
id;
218 if (sideset_info.
name.size())
219 sideset_json[
"name"] = sideset_info.
name;
222 auto & sides_json = sideset_json[
"sides"];
224 for (
const std::pair<dof_id_type, unsigned int> & pair : sideset_info.
sides)
226 nlohmann::json side_json;
227 side_json[
"elem_id"] = pair.first;
228 side_json[
"side"] = pair.second;
229 sides_json.push_back(side_json);
233 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 358 of file MeshInfo.C.
360 for (
const auto & pair : subdomains)
364 nlohmann::json subdomain_json;
365 subdomain_json[
"id"] = subdomain_info.
id;
366 if (subdomain_info.
name.size())
367 subdomain_json[
"name"] = subdomain_info.
name;
368 if (subdomain_info.
elems.size())
370 auto & sides_json = subdomain_json[
"elems"];
371 for (
const auto &
id : subdomain_info.
elems)
372 sides_json.push_back(
id);
375 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