CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Negative temperature, density, and pressure in buoyantSimpleFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2025, 22:41
Default Negative temperature, density, and pressure in buoyantSimpleFoam
  #1
New Member
 
Ash
Join Date: Mar 2025
Posts: 1
Rep Power: 0
acsfhd97 is on a distinguished road
Hello all,
I'm simulating laminar flow past a cuboidal obstruction in a cuboidal domain. The domain has an inlet, outlet, sides, and the bottom is a wall. The cuboidal obstruction is a wall on all sides and is located on the bottom face of the domain. I know the velocity and temprature at the inlet coming into the domain. When I try solving this with buoyantSimpleFoam, the temperature, density, and pressure become negative within 2 iterations and the simulation crashes. (The pressure becomes negative at the face of the obstruction opposite the face facing the inlet). If I remove the cuboidal obstruction and just simulate flow in the domain it works fine. Can someone please help me identify the issue? Thank you!

The p_rgh file is here:

Quote:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2412 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
"domain_.*"
{
type fixedFluxPressure;
value uniform 101325;
}

domain_outlet
{
type fixedValue;
value uniform 101325;
}



obstruction
{
type fixedFluxPressure;
value uniform 101325;

}

}


// ************************************************** *********************** //

Quote:
Here is U:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2412 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 4.47);

boundaryField
{
domain_inlet
{
type fixedValue;
value $internalField;
}

domain_outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value $internalField;

}

domain_left
{
type zeroGradient;

}

domain_right
{
type zeroGradient;

}

domain_up
{
type zeroGradient;

}

domain_down
{
type noSlip;

}

obstruction
{
type noSlip;

}





}

// ************************************************** *********************** //
Attached Files
File Type: zip case.zip (156.7 KB, 2 views)

Last edited by acsfhd97; March 2, 2025 at 18:21. Reason: Clarity
acsfhd97 is offline   Reply With Quote

Reply

Tags
buoyantsimplefoam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 17:00
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Density of fluid with respect to temperature and pressure akash_max CFX 4 November 6, 2011 09:00
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 15:19.