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

Time Dependent BC Problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2013, 10:22
Default Time Dependent BC Problem
  #1
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
eRzBeNgEl is on a distinguished road
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 is offline   Reply With Quote

Old   September 23, 2013, 07:02
Default
  #2
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
eRzBeNgEl is on a distinguished road
No one has got an idea about this?
eRzBeNgEl is offline   Reply With Quote

Old   September 23, 2013, 07:25
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
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.
sasanghomi is offline   Reply With Quote

Old   September 23, 2013, 09:28
Default
  #4
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
eRzBeNgEl is on a distinguished road
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?

Last edited by eRzBeNgEl; September 24, 2013 at 03:57.
eRzBeNgEl is offline   Reply With Quote

Old   September 24, 2013, 07:25
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
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.
sasanghomi is offline   Reply With Quote

Old   September 24, 2013, 11:21
Default
  #6
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
eRzBeNgEl is on a distinguished road
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
eRzBeNgEl 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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
[stressAnalysis] Residual plot for OpenFOAM-ext problem. Sargam05 OpenFOAM CC Toolkits for Fluid-Structure Interaction 26 July 14, 2014 08:36
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 12:53.