CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Time Dependent BC Problem (http://www.cfd-online.com/Forums/openfoam/123721-time-dependent-bc-problem.html)

eRzBeNgEl September 19, 2013 10:22

Time Dependent BC Problem
 
Hi guys,

I am trying to implement a time depending velocity inlet


Here is my U file:


Quote:

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


internalField uniform (0 0 0);


boundaryField
{
in
{
type uniformFixedValue;
uniformValue table
(
(0 (1 0 0))
(30 (1000 0 0))
(35 (1 0 0))
);
}
out
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (1 0 0);
}
.......and so on..........

And this is the error message@Output
Quote:

Time = 0.0002


Courant Number mean: 4.24553e-06 max: 5.5807e-05
DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 2.02838e-11, No Iterations 1
DILUPBiCG: Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0




--> FOAM FATAL ERROR:
Attempt to cast type uniformFixedValue to type freestream


From function refCast<To>(From&)
in file /opt/openfoam221/src/OpenFOAM/lnInclude/typeInfo.H at line 114.


FOAM aborting




What am I doing wrong here? I do not get my mistake?


I am using OF v221


Thanks for help

eRzBeNgEl September 23, 2013 07:02

No one has got an idea about this?

sasanghomi September 23, 2013 07:25

Hi,

Try to use this type :

in
{
type timeVaryingUniformFixedValue;
fileName "ramp.dat";
outOfBounds clamp;
}

Now you should create a ramp.dat file in your case directory like this :

(
(0 (1 0 0 ))
(1 (2 0 0 ))
(3 (3 0 0 ))
....
.....
...
);

hope this helps.

eRzBeNgEl September 23, 2013 09:28

Quote:

{
type timeVaryingUniformFixedValue;
fileName "ramp.dat";
outOfBounds clamp;
}



Thanks for your reply, but this BC does not exist for OpenFoam v221.

I am still having this problem. Any suggestion?

sasanghomi September 24, 2013 07:25

This boundary condition exists in OP 210 and 1.6-ext . Are you sure this BC doesn't exist in 221 ? try to use xxx instead of type of boundary condition and after running you will get an error that in this error you can see all BC in version 221 . After that paste all types of BC here.

eRzBeNgEl September 24, 2013 11:21

I solved my problem:

OF v221 BCs are listed here:
http://www.openfoam.org/version2.1.0...conditions.php
It says that
type timeVaryingUniformFixedValue are now part of
Quote:

The BCs that include time-varying options in v2.1.0 are:
flowRateInletVelocity: inlet condition with time-varying flow-rate.
oscillatingFixedValue: oscillatory fixed value condition with time-varying amplitude and frequency.
rotatingPressureInletOutletVelocity: total pressure condition for a rotating patch with time-varying angular velocity.
rotatingTotalPressure: total pressure condition for a rotating patch with time-varying angular velocity.
rotatingWallVelocity: velocity condition for a rotating boundary, e.g. a wheel, with time-varying angular velocity.
uniformFixedValue: general fixed value condition with time-varying value.
uniformTotalPressure: total pressure condition with time-varying pressure.


And my problem:
I thought I also changed my pressure conditions. In a further version I had freestreamPressure as BC. Somehow I did not saved the edited Pressure file. Just had to change the boundarys to fixedValue, zeroGradient, eg.. and it worked fine.




Thanks for your help


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