6#include "../System/SystemModule.h"
7#include "../Branch/BranchRecord.h"
8#include <boost/serialization/export.hpp>
9#include "../Global/SimulationContext.h"
10#include <boost/archive/binary_oarchive.hpp>
11#include <boost/archive/binary_iarchive.hpp>
57 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue Heat Structure has incorrect type of card: "
59 ofstream fout(
"err messages.txt", ios::app);
60 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue Heat Structure has incorrect type of card: "
70 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue Heat Structure can not find the corresponding component: "
72 ofstream fout(
"err messages.txt", ios::app);
73 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue Heat Structure can not find the corresponding component: "
103 if(str.compare(
"Pressure") == 0){
106 else if(str.compare(
"Liquid_Temperature") == 0){
109 else if(str.compare(
"Vapor_Temperature") == 0){
112 else if(str.compare(
"Saturation_Temperature") == 0){
115 else if(str.compare(
"Boron_Density") == 0){
118 else if(str.compare(
"Equilibrium_Quality") == 0){
121 else if(str.compare(
"Flow_Regime_Number") == 0){
125 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
127 ofstream fout(
"err messages.txt", ios::app);
128 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
168 if(str.compare(
"Mass_Flow_Rate") == 0){
171 else if(str.compare(
"Liquid_Velocity") == 0){
174 else if(str.compare(
"Vapor_Velocity") == 0){
178 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
180 ofstream fout(
"err messages.txt", ios::app);
181 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
227 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue can not find the corresponding type of component: "
229 ofstream fout(
"err messages.txt", ios::app);
230 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue can not find the corresponding type of component: "
240 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue can not find the corresponding component: "
242 ofstream fout(
"err messages.txt", ios::app);
243 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue can not find the corresponding component: "
258 string r_str =
"NOT_SPECIFIED";
269 if(str.compare(
"Pressure") == 0){
272 else if(str.compare(
"Liquid_Temperature") == 0){
275 else if(str.compare(
"Vapor_Temperature") == 0){
278 else if(str.compare(
"Saturation_Temperature") == 0){
281 else if(str.compare(
"Boron_Density") == 0){
284 else if(str.compare(
"Equilibrium_Quality") == 0){
287 else if(str.compare(
"Flow_regime_Number") == 0){
291 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
293 ofstream fout(
"err messages.txt", ios::app);
294 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
339 if(str.compare(
"Mass_Flow_Rate") == 0){
342 else if(str.compare(
"Liquid_Velocity") == 0){
345 else if(str.compare(
"Vapor_Velocity") == 0){
349 cout <<
"SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
351 ofstream fout(
"err messages.txt", ios::app);
352 fout <<
r5pars_.timesno <<
" SystemDisplay::getCorrespondingSystemParameterValue (SystemDisplay::getCorrespondingSystemName()): "
407 cout <<
"DisplayElement::getCorrespondingSystemParameterValue can not find the corresponding component: "
409 ofstream fout(
"err messages.txt", ios::app);
410 fout <<
r5pars_.timesno <<
" DisplayElement::getCorrespondingSystemParameterValue can not find the corresponding component: "
SimulationContext g_sim
Global simulation context: the single instance, defined in SimulationContext.cpp.
void setTempTypeOfConsequence(Consequence)
Stores the consequence of the end state the running sequence will get.
void setTempESMessage(std::string)
Stores the description of the end state the running sequence will get if it is terminated (set by mod...
std::string getUnitOfControlValue()
void saveDisplayElementToFile(std::ofstream &)
void readInfoFromFile(std::ifstream &)
std::string getCorrespondingSystemName()
std::string getCorrespondingSystemParameterName()
void retrieveDisplayElementFromFile(std::ifstream &)
void readInfoFromFileWithoutDisplayName(std::ifstream &)
void setCorrespondingSystemParameterUnit(std::string)
void copyDisplayElement(DisplayElement &)
std::string getUnitOfMeshPointTemperature()
double getMeshPointTemperature(int index)
std::string getUnitOfLiquidVelocity()
double getVaporVelocity()
std::string getUnitOfVaporVelocity()
double getLiquidVelocity()
std::string getUnitOfMassFlowRate()
std::string getUnitOfSaturationTemperature()
double getLiquidTemperature()
double getSaturationTemperature()
std::string getUnitOfLiquidTemperature()
double getVaporTemperature()
std::string getUnitOfVaporTemperature()
double getFlowRegimeNumber()
std::string getUnitOfBoronDensity()
double getEquilibriumQuality()
std::string getUnitOfPressure()
void readInfoFromFileWithoutDisplayName(std::ifstream &)
double getCorrespondingSystemParameterValue()
void setTypeOfDisplay(DisplayType type)
void setCorrespondingSystemParameterNameInNumber(int name)
int corresponding_system_parameter_name_in_number
int getCorrespondingSystemParameterNameInNumber()
DisplayType getTypeOfDisplay()
double getCorrespondingHeatStructureValue(int)
void readInfoFromFile(std::ifstream &)
void setPtrToCorrespondingTHElement(THElement *ptr)
void saveSystemDisplayToFile(std::ofstream &)
THElement * getPtrToCorrespondingTHElement()
void retrieveSystemDisplayFromFile(std::ifstream &)
THElement * ptr_to_corresponding_TH_element
void setFunctionalState(int state)
DisplayType type_of_display
void setCorrespondingSystemParameterUnit()
void copySystemDisplay(SystemDisplay &)
THElement * getComponentFromSystemMap(std::string)
Relap5ComponentType getTypeOfCard()
SystemModule Plant
Maps RELAP5 card numbers to C++ objects.
BranchRecord Branch_center
Dynamic event tree state.