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

reactingTwoPhaseEulerFoam pressure rising into oblivion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 28, 2023, 09:35
Default reactingTwoPhaseEulerFoam pressure rising into oblivion
  #1
Member
 
Vinzenz Götz
Join Date: Mar 2021
Location: Munich, Germany
Posts: 31
Rep Power: 5
Vinzmann is on a distinguished road
Hey foamers,

I am having a problem with reactingTwoPhaseEulerFoam.
I want to run a pressure driven flow and for that I modified the wallBoiling tutorial. My problem here is that the pressure rises and rises in the simulation until openfoam throws an error.

My p file looks like this:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 1e5;

boundaryField
{
    inlet
    {
	/*
        type            uniformTotalPressure;
        value           uniform 2e5;
	p0		table
	(
			(0	1.01e5)
			(1	1.1e5)
			(1.01	1.5e5)
			(1.1	2e5)
			(2	2e5));
	U		U.gas;
	psi		thermo:psi.gas;
	gamma		1;
	*/
	type		fixedValue;
	value		2e5;
	
    }

    outlet
    {
        type            calculated;
        value           $internalField;
	inletValue	$internalField;
    }

    wall1
    {
        type            zeroGradient;
        value           uniform 100000;
    }

    wall2
    {
        type            zeroGradient;
        value           uniform 100000;
    }

    defaultFaces
    {
        type            empty;
    }
}
With p_rgh like this:
Code:
boundaryField
{
    inlet
    {
	/*
        type            uniformTotalPressure;
	value		uniform 2e5;
	p0		table
        (
                        (0      1.01e5)
                        (1	1.1e5)
                        (1.01   1.5e5)
                        (1.1    2e5)
                        (2      2e5));;
	gamma		1;
	U		U.gas;
	psi		thermo:psi.gas;
	*/
	type		fixedValue;
	value		2e5;
	
    }

    outlet
    {
        type            prghPressure;
        p               $internalField;
        value           $internalField;
	inletValue	$internalField;
    }

    wall1
    {
        type            zeroGradient;
    }

    wall2
    {
        type            zeroGradient;
    }

    defaultFaces
    {
        type            empty;
    }
}
So when the simulation runs, I obtain maximum pressures in my domain which exceed the maximum total inlet pressure. How can I fix this?

Code:
fieldMinMax inlet_minmax write:
    min(T.liquid) = 259.992008 in cell 1885 at location (0.0175 1.98666667 0.095) on processor 3
    max(T.liquid) = 264.538203 in cell 1707 at location (0.0475 0.0666666667 0.095) on processor 0
    min(p_rgh) = 60708.731 in cell 1684 at location (0.0325 0.0133333333 0.095) on processor 0
    max(p_rgh) = 319567.437 in cell 3 at location (0.0175 0.0133333333 0.005) on processor 0
    min(T.gas) = 246 in cell 177 at location (0.0025 2 0.005) on processor 3
    max(T.gas) = 264.167583 in cell 1707 at location (0.0475 0.0666666667 0.095) on processor 0
    min(p) = 60716.7122 in cell 1684 at location (0.0325 0.0133333333 0.095) on processor 0
    max(p) = 319573.132 in cell 3 at location (0.0175 0.0133333333 0.005) on processor 0
    min(mag(U.gas)) = 0 in cell 0 at location (0 0.0133333333 0.005) on processor 0
    max(mag(U.gas)) = 51.9675555 in cell 3 at location (0.0175 0 0.005) on processor 0
    min(mag(U.liquid)) = 0 in cell 0 at location (0 0.0133333333 0.005) on processor 0
    max(mag(U.liquid)) = 51.9675555 in cell 3 at location (0.0175 0 0.005) on processor 0
This is after only a few time steps. Also my outlet does't let any fluid out, it just lets fluid in, which it should not do, since it is the same pressure as the internal field and has pressureInletOutletVelocity as a boundary condition.

Code:
average(inlet) of phi.gas = -5.61329548e-06
    average(inlet) of phi.liquid = -5.61329548e-06
average(outlet) of phi.gas = -1.11589869e-07
    average(outlet) of phi.liquid = -0.000266711356
It would be really great if you guys could help.

Thanks,
Vinz
Vinzmann is offline   Reply With Quote

Reply


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
viscosity udf don't use correct temperature and strain rate rezvani Fluent UDF and Scheme Programming 8 May 27, 2021 05:40
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 06:33
Wind tunnel Boundary Conditions in Fluent metmet FLUENT 6 October 30, 2019 12:23
How is total pressure calculated? looee CFX 15 October 30, 2019 08:14
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35


All times are GMT -4. The time now is 08:17.