NANDRAD Data Model Library
Version 2.0
NANDRAD
|
Contains all input data that describes a room with walls, floor, ceiling, usage, HVAC etc.
The room description references constructions, window and shading types from the database.
Definition at line 55 of file NANDRAD_Project.h.
#include <NANDRAD_Project.h>
Public Member Functions | |
void | readXML (const IBK::Path &filename) |
Reads the project data from an XML file. More... | |
void | writeXML (const IBK::Path &filename) const |
Writes the project file to an XML file. More... | |
void | initDefaults () |
Initializes project defaults. More... | |
void | mergeSameConstructions () |
All constructions with same boundary conditions and construction type are merged into one since the results will be the same for all constructions. More... | |
Public Attributes | |
ProjectInfo | m_projectInfo |
Comments about the project. More... | |
std::map< std::string, IBK::Path > | m_placeholders |
Contains mapping of directory placeholders and absolute directory paths. More... | |
Location | m_location |
Location of the building and climate data. More... | |
SimulationParameter | m_simulationParameter |
Simulation settings: all global parameters. More... | |
SolverParameter | m_solverParameter |
Solver settings: error tolerances and convergence coefficients. | |
std::vector< Zone > | m_zones |
All active and constant thermal zones. More... | |
std::vector< ConstructionInstance > | m_constructionInstances |
All construction instances refernce a construction and a thermal zone. More... | |
std::vector< HydraulicNetwork > | m_hydraulicNetworks |
All hydraulic networks defined for this project. More... | |
std::vector< ConstructionType > | m_constructionTypes |
All construction types reference construction parameters. More... | |
std::vector< Material > | m_materials |
All material types. More... | |
std::vector< WindowGlazingSystem > | m_windowGlazingSystems |
All glazing types. More... | |
Schedules | m_schedules |
References to all schedules. More... | |
Models | m_models |
Container for various model parametrization blocks. More... | |
Outputs | m_outputs |
References to Output specifications. More... | |
std::vector< ObjectList > | m_objectLists |
References to object lists. More... | |
FMIDescription | m_fmiDescription |
Definitions for exporting an FMU from the model. More... | |
Private Member Functions | |
void | readDirectoryPlaceholdersXML (const TiXmlElement *element) |
Reads the section with directory placeholders. More... | |
void | writeDirectoryPlaceholdersXML (TiXmlElement *parent) const |
Writes the section with directory placeholders, but only, if the map isn't empty. More... | |
void NANDRAD::Project::readXML | ( | const IBK::Path & | filename | ) |
Reads the project data from an XML file.
filename | The full path to the project file. |
void NANDRAD::Project::writeXML | ( | const IBK::Path & | filename | ) | const |
Writes the project file to an XML file.
filename | The full path to the project file. |
void NANDRAD::Project::initDefaults | ( | ) |
Initializes project defaults.
This function is called during solver run before readXML(). Hence, default values can be overwritten during project file reading.
void NANDRAD::Project::mergeSameConstructions | ( | ) |
All constructions with same boundary conditions and construction type are merged into one since the results will be the same for all constructions.
For each merged construction, a new construction is added to the end of the construction list. All merged constructions are removed (this ensured, that any remaining reference to a merged construction will trigger an error). The cross sections of all constructions are summed together to make up the final cross section of the merged construction.
A data table is created with information on merged constructions:
Embedded objects that reference one of the merge constructions will be modified to reference the merge construction instead. A mapping table is created that lists those changes:
|
private |
Reads the section with directory placeholders.
element | The directory placeholders element tag. |
|
private |
Writes the section with directory placeholders, but only, if the map isn't empty.
parent | The parent tag. |
ProjectInfo NANDRAD::Project::m_projectInfo |
Comments about the project.
Definition at line 103 of file NANDRAD_Project.h.
std::map<std::string, IBK::Path> NANDRAD::Project::m_placeholders |
Contains mapping of directory placeholders and absolute directory paths.
Definition at line 106 of file NANDRAD_Project.h.
Location NANDRAD::Project::m_location |
Location of the building and climate data.
Definition at line 109 of file NANDRAD_Project.h.
SimulationParameter NANDRAD::Project::m_simulationParameter |
Simulation settings: all global parameters.
Definition at line 112 of file NANDRAD_Project.h.
std::vector<Zone> NANDRAD::Project::m_zones |
All active and constant thermal zones.
Definition at line 118 of file NANDRAD_Project.h.
std::vector<ConstructionInstance> NANDRAD::Project::m_constructionInstances |
All construction instances refernce a construction and a thermal zone.
Definition at line 121 of file NANDRAD_Project.h.
std::vector<HydraulicNetwork> NANDRAD::Project::m_hydraulicNetworks |
All hydraulic networks defined for this project.
Definition at line 124 of file NANDRAD_Project.h.
std::vector<ConstructionType> NANDRAD::Project::m_constructionTypes |
All construction types reference construction parameters.
Definition at line 127 of file NANDRAD_Project.h.
std::vector<Material> NANDRAD::Project::m_materials |
All material types.
Definition at line 130 of file NANDRAD_Project.h.
std::vector<WindowGlazingSystem> NANDRAD::Project::m_windowGlazingSystems |
All glazing types.
Definition at line 133 of file NANDRAD_Project.h.
Schedules NANDRAD::Project::m_schedules |
References to all schedules.
Definition at line 136 of file NANDRAD_Project.h.
Models NANDRAD::Project::m_models |
Container for various model parametrization blocks.
Definition at line 139 of file NANDRAD_Project.h.
Outputs NANDRAD::Project::m_outputs |
References to Output specifications.
Definition at line 142 of file NANDRAD_Project.h.
std::vector<ObjectList> NANDRAD::Project::m_objectLists |
References to object lists.
Definition at line 145 of file NANDRAD_Project.h.
FMIDescription NANDRAD::Project::m_fmiDescription |
Definitions for exporting an FMU from the model.
Definition at line 148 of file NANDRAD_Project.h.