CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   plz have a look -error time dependent inlet conditions (http://www.cfd-online.com/Forums/openfoam/71183-plz-have-look-error-time-dependent-inlet-conditions.html)

heavy_user December 18, 2009 05:35

plz have a look -error time dependent inlet conditions
 
Hi There,

I am trying to have a time dependent inlet-condition.
I used the information from the threat "TimeVaryingUniformFixedValue".
(I want the velocity to raise, since pressure corretion messes up when i start up with the high velocity).

But I am stuck somehow...since I dont know how to deal with the error message.


.....
Create mesh for time = 0


Reading g
Reading thermophysical properties

Reading field T

Reading field p

Reading field U

Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 27 the doubleScalar 100000

file: /home/OpenFOAM/OpenFOAM-1.6/OWN/jetflame/V4/0/U::value at line 27.

From function Istream::readBegin(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 87.

FOAM exiting
............
the .dat file:

(
( 0.00005 ( 0 0 0.1000 ) )
( 0.00010 ( 0 0 0.2058 ) )
( 0.00015 ( 0 0 0.3116 ) )
( 0.00020 ( 0 0 0.4174 ) )
( 0.00025 ( 0 0 0.5232 ) )
( 0.00030 ( 0 0 0.6290 ) )
( 0.00035 ( 0 0 0.7348 ) )
( 0.00040 ( 0 0 0.8406 ) )
( 0.00045 ( 0 0 0.9464 ) )
( 0.00050 ( 0 0 1.0522 ) )
( 0.00055 ( 0 0 1.1580 ) )
( 0.00060 ( 0 0 1.2638 ) )
( 0.00065 ( 0 0 1.3696 ) )
( 0.00070 ( 0 0 1.4754 ) )
( 0.00075 ( 0 0 1.5812 ) )
( 0.00080 ( 0 0 1.6870 ) )
( 0.00085 ( 0 0 1.7928 ) )
( 0.00090 ( 0 0 1.8986 ) )
( 0.00095 ( 0 0 2.0044 ) )
( 0.00100 ( 0 0 2.1102 ) )
( 0.00105 ( 0 0 2.2160 ) )
( 0.00110 ( 0 0 2.3218 ) )
( 0.00115 ( 0 0 2.4276 ) )
( 0.00120 ( 0 0 2.5334 ) )
( 0.00125 ( 0 0 2.6392 ) )
( 0.00130 ( 0 0 2.7450 ) )
( 0.00135 ( 0 0 2.8508 ) ) // line 27 (starting to count from 0)
( 0.00140 ( 0 0 2.9566 ) )
( 0.00145 ( 0 0 3.0624 ) )
( 0.00150 ( 0 0 3.1682 ) )
( 0.00155 ( 0 0 3.2740 ) )
( 0.00160 ( 0 0 3.3798 ) )
( 0.00165 ( 0 0 3.4856 ) )
( 0.00170 ( 0 0 3.5914 ) )
( 0.00175 ( 0 0 3.6972 ) )
( 0.00180 ( 0 0 3.8030 ) )
( 0.00185 ( 0 0 3.9088 ) )
( 0.00190 ( 0 0 4.0146 ) )
( 0.00195 ( 0 0 4.1204 ) )
...........

I cant find a missing "(" and there is no value "100000" -> :confused:
Any Ideas????


regards

Schag December 18, 2009 07:48

"Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 27 the doubleScalar 100000

file: /home/OpenFOAM/OpenFOAM-1.6/OWN/jetflame/V4/0/U::value at line 27."

The Error is in the 0/U file, maybe you can show us this one.

heavy_user December 18, 2009 08:35

Quote:

Originally Posted by Schag (Post 240401)
"Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 27 the doubleScalar 100000

file: /home/OpenFOAM/OpenFOAM-1.6/OWN/jetflame/V4/0/U::value at line 27."

The Error is in the 0/U file, maybe you can show us this one.


Hi Schag,

thx for the answer!!

Ich checked the U file again and tryed things... now it seems to work...(but i ran into other probs , thats why it is called CFD (coloured frustration dynamics :-) ) )

I used the information from:
http://www.idurun.com/?p=506

Where they use:

inlet
{
type timeVaryingUniformFixedValue;
timeDataFileName "inlet.dat";
value uniform 1e5;
}

I used:

inlet-gas
{
type timeVaryingUniformFixedValue;
fileName "inlet.dat";
value uniform 1e5;
outOfBounds clamp;
}

OF seems not to like :
value uniform 1e5;
I removed it and now it seems to be running..

THX a lot!

P.S.:
I had to add the
outOfBounds clamp;
to continue simulation after specified data from "input.dat"..
i found info here : http://albertopassalacqua.com/?p=69


All times are GMT -4. The time now is 10:04.