|
MURE
|
Manages the coupling analysis with thermal hydraulics code COBRA-EN. More...
#include <COBRA_EN.hxx>
Public Member Functions | |
Constructor &destructor | |
| COBRA_EN (GenericReactorAssembly *GRA) | |
| Default constructor. | |
| virtual | ~COBRA_EN () |
| Default destructor. | |
| COBRA_EN () | |
| Fictitious constructor ; just used for reset of static bool. | |
| virtual COBRA_EN * | Clone () |
Protected Member Functions | |
Input file buiders | |
| void | Card1 () |
| Generate and Write : Run Identifier. | |
| void | Card2 () |
| Generate and Write : General Options. | |
| void | Card3 () |
| Generate and Write : General TH Parameters. | |
| void | Card4 () |
| Generate and Write : Axial Intervals. | |
| void | Card5 () |
| Generate and Write : Linear Rod Powers. | |
| void | Card7 () |
| Generate and Write : Channel Connexion Data. | |
| void | Card8 () |
| Generate and Write : Rod To Subchannel Connection Data. | |
| void | Card10 () |
| Generate and Write : Channel Data. | |
| void | Card11 () |
| Generate and Write : Grids position. | |
| void | Card12 () |
| Generate and Write : Data for COBRA Fuel Heating Models. | |
| void | Card14 () |
| Generate and Write : Hydraulic Model Indicators. | |
| void | Card18 () |
| Generate and Write : Two Phase Friction Model. | |
| void | Card20 () |
| Generate and Write : Void Friction Model. | |
| void | Card22 () |
| Generate and Write : Heat Transfer Model. | |
| void | Card26 () |
| Generate and Write : Parameters Section A and B. | |
| void | Card27 () |
| Generate and Write : Convergence Parameters. | |
| void | Card29 () |
| Generate and Write : Operating Conditions. | |
| void | Card30 () |
| Generate and Write : Time Data. | |
| void | Card32 () |
| Generate and Write : Transient Parameters. | |
| void | Card36 () |
| Generate and Write : Output Printing. | |
Internal methods | |
| COBRA_EN (const COBRA_EN &c) | |
| < Copy constructor | |
| void | Init () |
| Initializes some structures. | |
| void | THDataCalculations () |
| Calculates values necessary to COBRA code. | |
| void | MeshGridMC () |
| Create mesh grid correspondance between MURE and COBRA lattices. | |
| void | CardComment (int N, string Comment) |
| Generate and Write comments of cards. | |
| string | InputCardTruncate (double Value, int CharNumber, bool MustBeADouble=false) |
| Truncate value to the correct input size. | |
| void | CalculatePowerDeposits () |
| Calculate cells' power deposits. | |
| void | CalculateChannelsPositions () |
| Calculate channels' positions. | |
| vector< double > | CalculateChannelConnectionAndData (int ChannelNumber) |
| Calculate channels connections distances and channels data (area and perimeters) | |
| vector< double > | IdentifyRodsToSubChannelsConnexion (int RodNumber) |
| Calculate Rod to subchannel connection data. | |
| void | OrganizeChannels () |
| Organize Channels types. | |
| void | PrintData () |
| Print output files of geometry and power deposits. | |
| void | PrintNewTHData () |
| Print output files of new operating conditions. | |
| void | RunCOBRA () |
| Run script for COBRA launching. | |
| void | CheckRestrictions () |
| Checks coherence on data : some improvments are to be done. | |
COBRA Reader Internal subroutines | |
| GenericReactorAssembly * | fReactorAssembly |
| bool | fHydraulicModelIndicators |
| If true, user hydraulics parameters are used. | |
| string | fAssemblyName |
| Identification Name Of the assembly. | |
| int | fFuelRodsNumber |
| Total number of fuel rods (control rods are including in this numbering but they do not release power) | |
| int | fChannelsNumber |
| Total number of coolant channels (not including bypass channels) | |
| int | fChannelType |
| Number of different channel types. | |
| int | fNDX |
| Number of axials interval in thermal hydraulics. | |
| double | fInletTemperature |
| Inlet temperature (K) default = 560 K. | |
| double | fInletDensity |
| If necessary for plenum : inlet density linked with the temperature. | |
| double | fInletMassFlux |
| Average inlet mass flux (kg/m2/s) default = 3900 kg/m2/s. | |
| double | fInletBoronConcentration |
| Inlet boron concentration (mass proportion in ppm) default = 1000 ppm. | |
| double | fExitPressure |
| System exit pressure (MPa) default = 15.8 MPa. | |
| string | fDirectory |
| MURE output directory. | |
| ofstream * | fInputFile |
| COBRA Input File. | |
| ifstream * | fOutputFile |
| COBRA Output File. | |
| int | fNumberOfSpacerGrids |
| Number of grids. | |
| double | fSpacerGridCoeff |
| Grid loss coefficient. | |
| vector< double > | fSpacerGridPositions |
| Positions of grids. | |
| vector< vector< double > > | fPower |
| Power deposit value for each radial and axial zones. | |
| vector< vector< double > > | fPowerErr |
| Error on power deposit value for each radial and axial zones. | |
| vector< vector< int > > | fCOBRARodsLatticeNumbering |
| Matrix containing rods lattice mesh data for COBRA identification number (MURE->COBRA) | |
| vector< vector< int > > | fCOBRAChannelsLatticeNumbering |
| Matrix containing channels lattice mesh data for COBRA identification number (MURE->COBRA) | |
| vector< vector< double > > | fCOBRAChannelsRCXPos |
| Matrix containing channels top right corner X cartesian position. | |
| vector< vector< double > > | fCOBRAChannelsRCYPos |
| Matrix containing channels top right corner Y cartesian position. | |
| vector< vector< double > > | fCOBRAChannelsCenterXPos |
| Matrix containing channels center X cartesian position. | |
| vector< vector< double > > | fCOBRAChannelsCenterYPos |
| Matrix containing channels center Y cartesian position. | |
| vector< vector< int > > | fChannelTypes |
| Matrix containing channels types with their identification number. | |
| vector< double > | fChannelFlowArea |
| Flow area value of the channel. | |
| vector< double > | fChannelWettedPerimeter |
| Wetted perimeter value of the channel. | |
| vector< double > | fChannelHeatedPerimeter |
| Heated perimeter value of the channel. | |
| vector< vector< double > > | fMUREFuelCellsTemp |
| Matrix containing MURE fuel cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first) | |
| vector< vector< double > > | fMURECladCellsTemp |
| Matrix containing MURE cladding cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first) | |
| vector< vector< double > > | fMURECoolantCellsTemp |
| Matrix containing MURE coolant cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first) | |
| vector< vector< double > > | fCOBRACoolantChannelDensity |
| Temporary Matrix containing COBRA coolant channels temperature f[X][Y] : X = COBRA channel numbering ; Y = Levels steps (bottom at first) | |
| vector< vector< double > > | fMURECoolantCellsDensity |
| Matrix containing MURE coolant cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first) | |
| double | fOutletMeanTemperature |
| Outlet mean temperature (used for plenum) | |
| double | fOutletMeanDensity |
| Outlet mean density (used for plenum) | |
| vector< ofstream * > | fFiles |
| Output files. | |
| static bool | fSigmaPhiUpdated = false |
| Check if the update of sigma phi is already done. | |
| void | UpdateData () |
| Run routines to get and update all data. | |
| void | CheckOutputFile () |
| Checks output file presence (results of thermal hydraulics computation) | |
| void | ExtractData () |
| Read the output file and store required data into matrix (temperatures, densities, ...) | |
| void | MCCellsDataAverages () |
| Do an average on thermal data (COBRA mesh —> MURE mesh) | |
| void | MCZonesDataAverages () |
| Do an average on radial zones thermal data for each axial level (MURE simplified mesh) | |
| void | RebootStrapping () |
| Re initialize some values (in the case of iterations with neutronics) | |
Miscellaneous methods | |
| void | SetInletTemperature (double T) |
| void | SetInletMassFlux (double Q) |
| void | SetInletBoronConcentration (double C) |
| void | SetExitPressure (double P) |
| void | BuildCOBRAFile () |
| Build COBRA input file and run COBRA. | |
| void | SetSpacerGridsCoeff (double GridCoefficient) |
| void | AddSpacerGridsPos (double Pos) |
| GenericReactorAssembly * | GetReactorAssembly () |
| void | SetInletDensity (double D) |
| void | SetUserHydraulicsModel () |
| static void | ResetSigmaPhiBool () |
Manages the coupling analysis with thermal hydraulics code COBRA-EN.
This Object creates the input file of the thermal hydraulic code COBRA-EN. It manages the running and the update of the new temperature and densities into the simulated reactor. This class do not directly creates the geometry. It uses a ReactorAssembly geometry.
Data are in SI (dimensions in meters, power in watts, ...) PTO2NICO=pression are in MPa???
| COBRA_EN::COBRA_EN | ( | GenericReactorAssembly * | GRA | ) |
Default constructor.
|
virtualdefault |
Default destructor.
| COBRA_EN::COBRA_EN | ( | ) |
Fictitious constructor ; just used for reset of static bool.
|
protected |
< Copy constructor
|
inline |
< Add relative spacer grid position (fractional distance up channel : z/H)
| void COBRA_EN::BuildCOBRAFile | ( | ) |
Build COBRA input file and run COBRA.
|
protected |
Calculate channels connections distances and channels data (area and perimeters)
|
protected |
Calculate channels' positions.
|
protected |
Calculate cells' power deposits.
|
protected |
Generate and Write : Run Identifier.
|
protected |
Generate and Write : Channel Data.
|
protected |
Generate and Write : Grids position.
|
protected |
Generate and Write : Data for COBRA Fuel Heating Models.
|
protected |
Generate and Write : Hydraulic Model Indicators.
|
protected |
Generate and Write : Two Phase Friction Model.
|
protected |
Generate and Write : General Options.
|
protected |
Generate and Write : Void Friction Model.
|
protected |
Generate and Write : Heat Transfer Model.
|
protected |
Generate and Write : Parameters Section A and B.
|
protected |
Generate and Write : Convergence Parameters.
|
protected |
Generate and Write : Operating Conditions.
|
protected |
Generate and Write : General TH Parameters.
|
protected |
Generate and Write : Time Data.
|
protected |
Generate and Write : Transient Parameters.
|
protected |
Generate and Write : Output Printing.
|
protected |
Generate and Write : Axial Intervals.
|
protected |
Generate and Write : Linear Rod Powers.
|
protected |
Generate and Write : Channel Connexion Data.
|
protected |
Generate and Write : Rod To Subchannel Connection Data.
|
protected |
Generate and Write comments of cards.
|
protected |
Checks output file presence (results of thermal hydraulics computation)
|
protected |
Checks coherence on data : some improvments are to be done.
|
inlinevirtual |
< Correct way to copy a COBRA_EN object in case of derivation
|
protected |
Read the output file and store required data into matrix (temperatures, densities, ...)
|
inline |
< returns the reactor assembly
|
protected |
Calculate Rod to subchannel connection data.
|
protected |
Initializes some structures.
|
protected |
Truncate value to the correct input size.
|
protected |
Do an average on thermal data (COBRA mesh —> MURE mesh)
|
protected |
Do an average on radial zones thermal data for each axial level (MURE simplified mesh)
|
protected |
Create mesh grid correspondance between MURE and COBRA lattices.
|
protected |
Organize Channels types.
|
protected |
Print output files of geometry and power deposits.
|
protected |
Print output files of new operating conditions.
|
protected |
Re initialize some values (in the case of iterations with neutronics)
|
inlinestatic |
|
protected |
Run script for COBRA launching.
|
inline |
< Set system exit pressure (MPa)
|
inline |
< Set inlet boron concentration (mass proportion in ppm)
|
inline |
Set system inlet density (kg/m3).
This method is used only if plenums have been defined ; else, the inlet density is taken from the first cell density
| D | : the density |
|
inline |
< Set average inlet mass flux for channels (kg/m2/s)
|
inline |
< Set system inlet temperature (K)
|
inline |
< Set spacer grid loss coefficients
|
inline |
< Use special models for heat transfer (use carefully)
|
protected |
Calculates values necessary to COBRA code.
|
protected |
Run routines to get and update all data.
|
private |
Identification Name Of the assembly.
|
private |
Flow area value of the channel.
|
private |
Heated perimeter value of the channel.
|
private |
Total number of coolant channels (not including bypass channels)
|
private |
Number of different channel types.
|
private |
Matrix containing channels types with their identification number.
|
private |
Wetted perimeter value of the channel.
|
private |
Matrix containing channels center X cartesian position.
|
private |
Matrix containing channels center Y cartesian position.
|
private |
Matrix containing channels lattice mesh data for COBRA identification number (MURE->COBRA)
|
private |
Matrix containing channels top right corner X cartesian position.
|
private |
Matrix containing channels top right corner Y cartesian position.
|
private |
Temporary Matrix containing COBRA coolant channels temperature f[X][Y] : X = COBRA channel numbering ; Y = Levels steps (bottom at first)
|
private |
Matrix containing rods lattice mesh data for COBRA identification number (MURE->COBRA)
|
private |
MURE output directory.
|
private |
System exit pressure (MPa) default = 15.8 MPa.
|
private |
Output files.
|
private |
Total number of fuel rods (control rods are including in this numbering but they do not release power)
|
private |
If true, user hydraulics parameters are used.
|
private |
Inlet boron concentration (mass proportion in ppm) default = 1000 ppm.
|
private |
If necessary for plenum : inlet density linked with the temperature.
|
private |
Average inlet mass flux (kg/m2/s) default = 3900 kg/m2/s.
|
private |
Inlet temperature (K) default = 560 K.
|
private |
COBRA Input File.
|
private |
Matrix containing MURE cladding cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first)
|
private |
Matrix containing MURE coolant cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first)
|
private |
Matrix containing MURE coolant cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first)
|
private |
Matrix containing MURE fuel cells temperature f[X][Y] : X = COBRA rod numbering ; Y = Levels steps (bottom at first)
|
private |
Number of axials interval in thermal hydraulics.
|
private |
Number of grids.
|
private |
Outlet mean density (used for plenum)
|
private |
Outlet mean temperature (used for plenum)
|
private |
COBRA Output File.
|
private |
Power deposit value for each radial and axial zones.
|
private |
Error on power deposit value for each radial and axial zones.
|
private |
|
staticprivate |
Check if the update of sigma phi is already done.
|
private |
Grid loss coefficient.
|
private |
Positions of grids.