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

All output values increase rapidly after one cycle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2019, 21:03
Default All output values increase rapidly after one cycle
  #1
New Member
 
Rohan
Join Date: Apr 2019
Posts: 2
Rep Power: 0
12ohan is on a distinguished road
Hello,

I'm currently doing a project using pimpleFoam which consists of two inlets and one outlet. The two inlets had been assigned almost sinusoidal flow rates with a period of 1 that range from 0 to 5 seconds. My problem is that my output values like the velocities, pressure, courant number, etc. all rapidly increase to huge values (over 1e+40) after the first second. I'm not sure why this is the case. I have tried using small deltaT values like 0.0001 and even used adjustTimeStep which made deltaT very small but the courant number increased even quicker and simulation stop at around 3.5 seconds. Below are my current files that I modified.

My p file:
{
Wall
{
type zeroGradient;
}

Inlet1
{
type zeroGradient;
}

Inlet2
{
type zeroGradient;
}

Outlet
{
type fixedValue;
value uniform 0;
}
}


My U file:
{
Wall
{
type noSlip;
}

Inlet1
{
type flowRateInletVelocity;
volumetricFlowRate tableFile;
volumetricFlowRateCoeffs
{
outOfBounds repeat;
file "Inlet1.csv";
}
extrapolateProfile false;
value uniform (0 0 0);
}


Inlet2
{
type flowRateInletVelocity;
volumetricFlowRate tableFile;
volumetricFlowRateCoeffs
{
outOfBounds repeat;
file "Inlet2.csv";
}
extrapolateProfile false;
value uniform (0 0 0);
}


Outlet
{
type zeroGradient;
}
}


My controlDict file:
application pimpleFoam;

startFrom startTime;

stopAt endTime;

startTime 0;

endTime 5;

deltaT 0.005;

writeControl adjustableRunTime;

writeInterval 0.02;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

adjustTimeStep no;

maxCo 1.0;

maxDeltaT 0.1;
// ************************************************** *********************** //

functions
{
fieldAverage1
{
type fieldAverage;
libs ("libfieldFunctionObjects.so");
executeControl timeStep;
writeControl writeTime;
timeStart 0;
timeEnd 5;

fields
(
U
{
mean on;
prime2Mean on;
base time;
}
p
{
mean on;
prime2Mean on;
base time;
}
);
}

}

functions
{
forces
{
type forces;

libs ("libforces.so");

writeControl timeStep;
timeInterval 0.02;

log yes;

patches ("Wall");
rho rhoInf;
log true;
rhoInf 1;

CofR (0 0 0);
pitchAxis (0 0 0);
p p;
U U;
}
}


My fvSchemes file:
ddtSchemes
{
default Euler;
}

gradSchemes
{
default Gauss linear;
}

divSchemes
{
default none;
div(phi,U) Gauss LUST grad(U);
div(phi,k) Gauss limitedLinear 1;
div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}


My fvSolution file:
solvers
{
p
{
solver PCG;
preconditioner FDIC;
tolerance 1e-06;
relTol 0;
//maxIter 100;
}

pFinal
{
$p;
relTol 0;
}

U
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
//maxIter 100;
}

UFinal
{
$U;
relTol 0;
}
}

PIMPLE
{
momentumPredictor off;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}

relaxationFactors
{
equations
{
".*" 1;
}
}


It would be very nice if someone can help me out here.
Thanks.

Last edited by 12ohan; April 23, 2019 at 22:18.
12ohan is offline   Reply With Quote

Old   April 26, 2019, 11:52
Default
  #2
New Member
 
Rohan
Join Date: Apr 2019
Posts: 2
Rep Power: 0
12ohan is on a distinguished road
Hi, if someone can help me. I am new to this field and still really struggling.

Thanks.
12ohan 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
Instabilities with too low yplus values? BendikS OpenFOAM Running, Solving & CFD 0 February 27, 2017 06:37
SIMPLE algorithm does not converge when using old pressure (correction) values andreasp Main CFD Forum 3 February 9, 2016 22:18
Nondimensional output from SU2 kmandar SU2 2 September 16, 2015 12:24
How to increase the output precision for a variable? ripperjack OpenFOAM 4 April 19, 2013 19:04
Increasing the accuracy of pressure head values in output data Saeed1390 FLUENT 0 June 13, 2011 03:17


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