CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Time varying inlet velocity problem (https://www.cfd-online.com/Forums/openfoam-pre-processing/142725-time-varying-inlet-velocity-problem.html)

eddykendo October 8, 2014 05:50

Time varying inlet velocity problem
 
Hi.. Foamers

I have applied a time varying inlet velocity condition for a circular cylinder in 2D. However, there was a problem on it while was being simulated in parallel.

I used the inlet velocity so that it can change momently from 5 m/s to 10 m/s like a step function at time T=1.5 or 2.0.
When I used it at T=0.5 or 1.0, any other time <= 1.0, there was no problem.
However, when I used that time varying condition at T=1.5 or 2.0, any other time >= 1.5, there existed a problem and the simulation was broken out.
You can see my time varying inlet velocity condition and the errors concerning it as below.

I will appreciate it if you had a similar experience and could help me.

Thanks.

Inlet condition:

boundaryField
{
inlet
{
type uniformFixedValue;


uniformValue table
(
( 0 (5.0 0.0 0.0) )
( 1.999999 (5.0 0 0) )
( 2.0 (10.0 0.0 0.0) )

);
}

Error:

Create time

Create mesh for time = 0

Reading field p

Reading field U

[0] [1]
[1]
[1] --> FOAM FATAL ERROR:
[1] out-of-order value: 1.5 at index 2
[1]
[1] From function Foam::TableBase<Type>::check() const
[1] in file lnInclude/TableBase.C at line 203.
[1]
FOAM parallel run exiting
[2]
[2]
[2] --> FOAM FATAL ERROR:
[2] out-of-order value: 1.5 at index 2
[2]
[2] From function Foam::TableBase<Type>::check() const
[2] in file lnInclude/TableBase.C at line 203.
[2]
FOAM parallel run exiting
[2]
[1]
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 1 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
[4]
[4]
[4] --> FOAM FATAL ERROR:
[4] out-of-order value: 1.5 at index 2
[4]
[4] From function Foam::TableBase<Type>::check() const
[4] in file lnInclude/TableBase.C at line 203.
[4]
FOAM parallel run exiting

ssss October 9, 2014 07:33

Why not using groovyBC? It's quite useful to deal with this kind of boundary conditions

Have a look at: http://openfoamwiki.net/index.php/Contrib/groovyBC


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