167 string InputCardTruncate(
double Value,
int CharNumber,
bool MustBeADouble =
false);
Header file for abstract class GenricReactorAssembly.
Manages the coupling analysis with thermal hydraulics code COBRA-EN.
Definition COBRA_EN.hxx:52
vector< vector< double > > fCOBRAChannelsRCYPos
Matrix containing channels top right corner Y cartesian position.
Definition COBRA_EN.hxx:236
double fSpacerGridCoeff
Grid loss coefficient.
Definition COBRA_EN.hxx:229
vector< double > CalculateChannelConnectionAndData(int ChannelNumber)
Calculate channels connections distances and channels data (area and perimeters)
Definition COBRA_EN_constructor.cxx:394
int fChannelsNumber
Total number of coolant channels (not including bypass channels)
Definition COBRA_EN.hxx:217
void Card32()
Generate and Write : Transient Parameters.
Definition COBRA_EN_buildfile.cxx:633
void RebootStrapping()
Re initialize some values (in the case of iterations with neutronics)
Definition COBRA_EN_reader.cxx:475
void Card2()
Generate and Write : General Options.
Definition COBRA_EN_buildfile.cxx:108
double fInletTemperature
Inlet temperature (K) default = 560 K.
Definition COBRA_EN.hxx:220
void Init()
Initializes some structures.
Definition COBRA_EN_constructor.cxx:123
void OrganizeChannels()
Organize Channels types.
Definition COBRA_EN_constructor.cxx:611
void Card26()
Generate and Write : Parameters Section A and B.
Definition COBRA_EN_buildfile.cxx:543
void Card18()
Generate and Write : Two Phase Friction Model.
Definition COBRA_EN_buildfile.cxx:497
int fNDX
Number of axials interval in thermal hydraulics.
Definition COBRA_EN.hxx:219
void Card10()
Generate and Write : Channel Data.
Definition COBRA_EN_buildfile.cxx:286
vector< double > fChannelWettedPerimeter
Wetted perimeter value of the channel.
Definition COBRA_EN.hxx:241
void CalculatePowerDeposits()
Calculate cells' power deposits.
Definition COBRA_EN_constructor.cxx:276
void MCCellsDataAverages()
Do an average on thermal data (COBRA mesh —> MURE mesh)
Definition COBRA_EN_reader.cxx:255
GenericReactorAssembly * GetReactorAssembly()
Definition COBRA_EN.hxx:101
ofstream * fInputFile
COBRA Input File.
Definition COBRA_EN.hxx:226
int fFuelRodsNumber
Total number of fuel rods (control rods are including in this numbering but they do not release power...
Definition COBRA_EN.hxx:216
void CheckOutputFile()
Checks output file presence (results of thermal hydraulics computation)
Definition COBRA_EN_reader.cxx:49
void SetInletBoronConcentration(double C)
Definition COBRA_EN.hxx:80
void SetInletMassFlux(double Q)
Definition COBRA_EN.hxx:76
string fAssemblyName
Identification Name Of the assembly.
Definition COBRA_EN.hxx:215
void SetExitPressure(double P)
Definition COBRA_EN.hxx:84
vector< vector< double > > fMURECladCellsTemp
Matrix containing MURE cladding cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels step...
Definition COBRA_EN.hxx:245
vector< vector< int > > fCOBRAChannelsLatticeNumbering
Matrix containing channels lattice mesh data for COBRA identification number (MURE->COBRA)
Definition COBRA_EN.hxx:234
double fOutletMeanTemperature
Outlet mean temperature (used for plenum)
Definition COBRA_EN.hxx:250
void Card14()
Generate and Write : Hydraulic Model Indicators.
Definition COBRA_EN_buildfile.cxx:472
void CalculateChannelsPositions()
Calculate channels' positions.
Definition COBRA_EN_constructor.cxx:343
void CheckRestrictions()
Checks coherence on data : some improvments are to be done.
Definition COBRA_EN_constructor.cxx:715
vector< vector< int > > fChannelTypes
Matrix containing channels types with their identification number.
Definition COBRA_EN.hxx:239
vector< vector< double > > fCOBRAChannelsCenterXPos
Matrix containing channels center X cartesian position.
Definition COBRA_EN.hxx:237
int fChannelType
Number of different channel types.
Definition COBRA_EN.hxx:218
void Card5()
Generate and Write : Linear Rod Powers.
Definition COBRA_EN_buildfile.cxx:181
void Card7()
Generate and Write : Channel Connexion Data.
Definition COBRA_EN_buildfile.cxx:227
void Card11()
Generate and Write : Grids position.
Definition COBRA_EN_buildfile.cxx:339
void RunCOBRA()
Run script for COBRA launching.
Definition COBRA_EN_buildfile.cxx:667
void SetInletTemperature(double T)
Definition COBRA_EN.hxx:72
bool fHydraulicModelIndicators
If true, user hydraulics parameters are used.
Definition COBRA_EN.hxx:214
double fInletBoronConcentration
Inlet boron concentration (mass proportion in ppm) default = 1000 ppm.
Definition COBRA_EN.hxx:223
string InputCardTruncate(double Value, int CharNumber, bool MustBeADouble=false)
Truncate value to the correct input size.
Definition COBRA_EN_constructor.cxx:210
vector< vector< int > > fCOBRARodsLatticeNumbering
Matrix containing rods lattice mesh data for COBRA identification number (MURE->COBRA)
Definition COBRA_EN.hxx:233
vector< double > fSpacerGridPositions
Positions of grids.
Definition COBRA_EN.hxx:230
vector< vector< double > > fMURECoolantCellsDensity
Matrix containing MURE coolant cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps...
Definition COBRA_EN.hxx:248
vector< double > fChannelFlowArea
Flow area value of the channel.
Definition COBRA_EN.hxx:240
vector< vector< double > > fCOBRACoolantChannelDensity
Temporary Matrix containing COBRA coolant channels temperature f[X][Y] : X = COBRA channel numbering ...
Definition COBRA_EN.hxx:247
double fInletMassFlux
Average inlet mass flux (kg/m2/s) default = 3900 kg/m2/s.
Definition COBRA_EN.hxx:222
void Card30()
Generate and Write : Time Data.
Definition COBRA_EN_buildfile.cxx:621
void Card4()
Generate and Write : Axial Intervals.
Definition COBRA_EN_buildfile.cxx:166
void PrintNewTHData()
Print output files of new operating conditions.
Definition COBRA_EN_reader.cxx:420
void Card1()
Generate and Write : Run Identifier.
Definition COBRA_EN_buildfile.cxx:103
double fExitPressure
System exit pressure (MPa) default = 15.8 MPa.
Definition COBRA_EN.hxx:224
vector< vector< double > > fMUREFuelCellsTemp
Matrix containing MURE fuel cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (b...
Definition COBRA_EN.hxx:244
void MCZonesDataAverages()
Do an average on radial zones thermal data for each axial level (MURE simplified mesh)
Definition COBRA_EN_reader.cxx:283
vector< vector< double > > fCOBRAChannelsCenterYPos
Matrix containing channels center Y cartesian position.
Definition COBRA_EN.hxx:238
string fDirectory
MURE output directory.
Definition COBRA_EN.hxx:225
ifstream * fOutputFile
COBRA Output File.
Definition COBRA_EN.hxx:227
double fInletDensity
If necessary for plenum : inlet density linked with the temperature.
Definition COBRA_EN.hxx:221
void THDataCalculations()
Calculates values necessary to COBRA code.
Definition COBRA_EN_constructor.cxx:186
void AddSpacerGridsPos(double Pos)
Definition COBRA_EN.hxx:93
void Card12()
Generate and Write : Data for COBRA Fuel Heating Models.
Definition COBRA_EN_buildfile.cxx:363
void ExtractData()
Read the output file and store required data into matrix (temperatures, densities,...
Definition COBRA_EN_reader.cxx:60
double fOutletMeanDensity
Outlet mean density (used for plenum)
Definition COBRA_EN.hxx:251
vector< vector< double > > fPowerErr
Error on power deposit value for each radial and axial zones.
Definition COBRA_EN.hxx:232
void UpdateData()
Run routines to get and update all data.
Definition COBRA_EN_reader.cxx:39
void Card8()
Generate and Write : Rod To Subchannel Connection Data.
Definition COBRA_EN_buildfile.cxx:260
void Card3()
Generate and Write : General TH Parameters.
Definition COBRA_EN_buildfile.cxx:125
vector< vector< double > > fPower
Power deposit value for each radial and axial zones.
Definition COBRA_EN.hxx:231
static void ResetSigmaPhiBool()
Definition COBRA_EN.hxx:97
void MeshGridMC()
Create mesh grid correspondance between MURE and COBRA lattices.
Definition COBRA_EN_constructor.cxx:317
void SetSpacerGridsCoeff(double GridCoefficient)
Definition COBRA_EN.hxx:89
static bool fSigmaPhiUpdated
Check if the update of sigma phi is already done.
Definition COBRA_EN.hxx:213
vector< vector< double > > fMURECoolantCellsTemp
Matrix containing MURE coolant cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps...
Definition COBRA_EN.hxx:246
void SetInletDensity(double D)
Definition COBRA_EN.hxx:112
void PrintData()
Print output files of geometry and power deposits.
Definition COBRA_EN_constructor.cxx:649
GenericReactorAssembly * fReactorAssembly
Definition COBRA_EN.hxx:212
vector< double > fChannelHeatedPerimeter
Heated perimeter value of the channel.
Definition COBRA_EN.hxx:242
vector< double > IdentifyRodsToSubChannelsConnexion(int RodNumber)
Calculate Rod to subchannel connection data.
Definition COBRA_EN_constructor.cxx:554
int fNumberOfSpacerGrids
Number of grids.
Definition COBRA_EN.hxx:228
virtual COBRA_EN * Clone()
Definition COBRA_EN.hxx:62
void Card20()
Generate and Write : Void Friction Model.
Definition COBRA_EN_buildfile.cxx:510
vector< vector< double > > fCOBRAChannelsRCXPos
Matrix containing channels top right corner X cartesian position.
Definition COBRA_EN.hxx:235
void Card29()
Generate and Write : Operating Conditions.
Definition COBRA_EN_buildfile.cxx:601
void BuildCOBRAFile()
Build COBRA input file and run COBRA.
Definition COBRA_EN_buildfile.cxx:37
virtual ~COBRA_EN()
Default destructor.
COBRA_EN()
Fictitious constructor ; just used for reset of static bool.
Definition COBRA_EN_constructor.cxx:72
void Card27()
Generate and Write : Convergence Parameters.
Definition COBRA_EN_buildfile.cxx:577
vector< ofstream * > fFiles
Output files.
Definition COBRA_EN.hxx:253
void SetUserHydraulicsModel()
Definition COBRA_EN.hxx:116
void Card36()
Generate and Write : Output Printing.
Definition COBRA_EN_buildfile.cxx:645
void Card22()
Generate and Write : Heat Transfer Model.
Definition COBRA_EN_buildfile.cxx:525
void CardComment(int N, string Comment)
Generate and Write comments of cards.
Definition COBRA_EN_buildfile.cxx:660
This abstract class is used to built a reactor assembly.
Definition GenericReactorAssembly.hxx:69
the namespace of the Standard C++