vector<double> transportVelocity(1,5);//fluid velocity vector\r
\r
TransportEquation myProblem(LiquidPhase,around155bars600KTransport,transportVelocity);\r
- Field VV("Enthalpy", CELLS, M, 1);\r
\r
- //Set rod temperature and heat exchamge coefficient\r
- double rodTemp=623;//Rod clad temperature\r
- double heatTransfertCoeff=1000;//fluid/solid exchange coefficient \r
- myProblem.setRodTemperature(rodTemp);\r
- myProblem.setHeatTransfertCoeff(heatTransfertCoeff);\r
-\r
- //Initial field creation\r
+ //Set initial field\r
Vector VV_Constant(1);//initial enthalpy\r
VV_Constant(0) = 1.3e6;\r
\r
cout << "Building the initial data " << endl;\r
-\r
- // generate initial condition\r
myProblem.setInitialFieldConstant(M,VV_Constant);\r
\r
+ //Set rod temperature and heat exchamge coefficient\r
+ double rodTemp=623;//Rod clad temperature\r
+ double heatTransfertCoeff=1000;//fluid/solid exchange coefficient \r
+ myProblem.setRodTemperature(rodTemp);\r
+ myProblem.setHeatTransfertCoeff(heatTransfertCoeff);\r
+\r
//set the boundary conditions\r
myProblem.setBoundaryFields(boundaryFields);\r
\r
TransportEquation myProblem(LiquidPhase,around155bars600KTransport,transportVelocity);\r
Field VV("Enthalpy", CELLS, M, 1);\r
\r
- //Set rod temperature and heat exchamge coefficient\r
- double rodTemp=623;//Rod clad temperature\r
- double heatTransfertCoeff=1000;//fluid/solid exchange coefficient \r
- myProblem.setRodTemperature(rodTemp);\r
- myProblem.setHeatTransfertCoeff(heatTransfertCoeff);\r
\r
- //Initial field creation\r
+ //Set initial field\r
Vector VV_Constant(1);//initial enthalpy\r
VV_Constant(0) = 1.3e6;\r
\r
cout << "Building the initial data " << endl;\r
-\r
- // generate initial condition\r
myProblem.setInitialFieldConstant(M,VV_Constant);\r
\r
+ //Set rod temperature and heat exchamge coefficient\r
+ double rodTemp=623;//Rod clad temperature\r
+ double heatTransfertCoeff=1000;//fluid/solid exchange coefficient \r
+ myProblem.setRodTemperature(rodTemp);\r
+ myProblem.setHeatTransfertCoeff(heatTransfertCoeff);\r
+\r
//set the boundary conditions\r
myProblem.setBoundaryFields(boundaryFields);\r
\r