CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Energy won't leave the domain (https://www.cfd-online.com/Forums/openfoam/242293-energy-wont-leave-domain.html)

hansenka April 14, 2022 02:34

Energy won't leave the domain
 
Hi again. My model is almost there, but it wont converge due to the energy isn't leaving the domain.
I am solving a natural convection problem, with a heat source of 2000W/m2 with a buoyantPimpleFoam solver with a k-epsilon model. I am using upwind scheme for faster convergence.



Boundary conditions:
T:
boundaryField
{

inlet-basement-duct
{
type fixedValue;
value uniform 288;
}
inlet-above-floor-duct
{
type fixedValue;
value uniform 288;
}
inlet-basement-tap
{
type fixedValue;
value uniform 288;
}
inlet-above-floor-tap
{
type fixedValue;
value uniform 288;
}
outlet
{
type zeroGradient;
// type inletOutlet;
// inletValue uniform 312;
// value $internalField;
}
wall-ground
{
type zeroGradient;
}
wall-basement
{
type zeroGradient;
}
wall-pot-room-walls
{
type zeroGradient;
}
wall-pot-room-roof
{
type zeroGradient;
}
wall-monitor
{
type zeroGradient;
}

wall-floor
{
type zeroGradient;
}
wall-pot-abovefloor
{
type externalWallHeatFluxTemperature;
mode flux;
q uniform 3000; //Heat flux [W/m2]
kappaMethod fluidThermo;
value $internalField; //pot_room temp [K]
}
wall-pot-belowfloor
{
type externalWallHeatFluxTemperature;
mode flux;
q uniform 1000; //Heat flux [W/m2]
kappaMethod fluidThermo;
value $internalField; //pot_room temp [K]
}
wall-pot-bottom
{
type externalWallHeatFluxTemperature;
mode flux;
q uniform 1000; //Heat flux [W/m2]
kappaMethod fluidThermo;
value $internalField; //pot_room temp [K]
}
frontAndBackPlanes
{
type empty;
}


}

U:
boundaryField
{
inlet-basement-duct
{
type outletInlet;
phi phi;
outletValue uniform (0.8 0 0);
value uniform (0.8 0 0);
// type zeroGradient;
//type freestreamVelocity;
//freestreamValue $internalField;
// type noSlip;
// type fixedValue;
// value uniform (1 0 0);
}
inlet-basement-tap
{
type outletInlet;
phi phi;
outletValue uniform (-0.8 0 0);
value uniform (-0.8 0 0);
// type zeroGradient;
//type freestreamVelocity;
//freestreamValue $internalField;
// type noSlip;
// type fixedValue;
//value uniform (-1 0 0);
}
inlet-above-floor-duct
{
type outletInlet;
phi phi;
outletValue uniform (0.8 0 0);
value uniform (0.8 0 0);
// type zeroGradient;
//type freestreamVelocity;
//freestreamValue $internalField;
// type noSlip;
// type fixedValue;
// value uniform (1 0 0);
}
inlet-above-floor-tap
{
type outletInlet;
phi phi;
outletValue uniform (-0.8 0 0);
value uniform (-0.8 0 0);
// type zeroGradient;
//type freestreamVelocity;
//freestreamValue $internalField;
// type noSlip;
// type fixedValue;
//value uniform (-1 0 0);
}
outlet
{
// type zeroGradient;
type inletOutlet;
inletValue uniform (0 0 0);
value $internalField;
// type pressureInletOutletVelocity;
//value uniform (0 0 0);
}
wall-ground
{
type noSlip;
}
wall-basement
{
type noSlip;
}
wall-pot-room-walls
{
type noSlip;
}
wall-pot-room-roof
{
type noSlip;
}
wall-monitor
{
type noSlip;
}

wall-floor
{
type noSlip;
}
wall-pot-abovefloor
{
type noSlip;
}
wall-pot-belowfloor
{
type noSlip;
}
wall-pot-bottom
{
type noSlip;
}
frontAndBackPlanes
{
type empty;
}

}



P_rgh
{
inlet-basement-duct
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
inlet-above-floor-duct
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
inlet-basement-tap
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
inlet-above-floor-tap
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
outlet
{
type prghTotalPressure;
p0 $internalField;
}
wall-ground
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-basement
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-pot-room-walls
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-pot-room-roof
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-monitor
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}

wall-floor
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-pot-abovefloor
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-pot-belowfloor
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
wall-pot-bottom
{
type fixedFluxPressure;
gradient uniform 0;
value $internalField;
}
frontAndBackPlanes
{
type empty;
}

For P, all variables are set to calculated.

inlets for epsilon and k are fixed value = 0.01, while outlets boundaries are set to: inletoutlet
For nut and alphat, inlets and outlets are set to calculated.


thanks ahead for the help


All times are GMT -4. The time now is 06:47.