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

Transient boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2010, 10:30
Default
  #121
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by rob3rt View Post
Hi Eveyone,

I want to implement a transient boundary conditions, hence I need boundaryData file under constant. However,the problem is the property that I want to vary with time is dimensionedScalar (No_Read in CreateFields.H) instead of volScalarField. What can I do to implement this? I have tried to put this in the solver, but doesn't work.

if (runTime.value() > 500)
{
Q = 600;
}
else
{
Q = 0;
}

Suggestions will be very much appreciated.

Thanks in advance.

Robert
I think there is no need to do anything in the solver. Setting the right boundary conditions should be sufficient. If it is a value you want to fix then have a look at timeVaryingUniform (that comes with OpenFOAM) else (gradients, mixed) have a look at groovyBC. There an expression like "(time>500) ? 600 : 0" should get you where you want

Bernhard
gschaider is offline   Reply With Quote

Old   September 1, 2010, 21:10
Default
  #122
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
Dear Foamers,

i'm using sonicFoam and i have to use a pressure inlet time depended boundary condition (i have files (total pressure, temperature, velocity) from real test).

I am an OpenFOAM beginner can you help me please.

Best regards.
bruxellois4 is offline   Reply With Quote

Old   September 2, 2010, 04:09
Default
  #123
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 17
woody is on a distinguished road
Hi Abdel,

try the timeVaryingUniformFixedValue BC...
input is a file like (ti pi ):

Code:
(
(0 100000)
(0.001 99880)
(0.002 120000)
...
)
Greez
Tobias
woody is offline   Reply With Quote

Old   September 2, 2010, 18:37
Default
  #124
New Member
 
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16
bruxellois4 is on a distinguished road
Hi!

thanks for your response, now i've another problem :

--> FOAM FATAL IO ERROR:
keyword internalField is undefined in dictionary "/home/moumen/tfe/axis/test64/0/p"

how i shoud define my internalField.

Best regards


Quote:
Originally Posted by woody View Post
Hi Abdel,

try the timeVaryingUniformFixedValue BC...
input is a file like (ti pi ):

Code:
(
(0 100000)
(0.001 99880)
(0.002 120000)
...
)
Greez
Tobias
bruxellois4 is offline   Reply With Quote

Old   September 3, 2010, 05:12
Default
  #125
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 17
woody is on a distinguished road
Hi Abdel,

sorry but this question can't be serious. I would recommend reading the manual, doing some tutorials, and afterwards implementing your case...

Good Luck

Tobi
woody is offline   Reply With Quote

Old   October 4, 2010, 05:45
Default groovyBc compilation error
  #126
Member
 
Yashar Afarin
Join Date: May 2010
Location: Toronto- Canada
Posts: 40
Rep Power: 16
yashar.afarin is on a distinguished road
Send a message via Skype™ to yashar.afarin
hello,
i am using OpenFOAM-1.6.x on Fedora12 (64 bit).
i want to install "groovyBC" and if i compile it with "wmake libso" in the sources this error would be appear:
linux64GccDPOpt/options:14: *** missing separator. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created


i wolud appreciate it if someone help me.
thanks
yashar.afarin is offline   Reply With Quote

Old   August 30, 2011, 06:39
Default Problem with transient boundary condition
  #127
New Member
 
Muhammad Umer Ijaz Chaudrey
Join Date: Aug 2011
Location: Eindhoven, The Netherlands
Posts: 26
Rep Power: 15
umer.chaudrey is on a distinguished road
Send a message via Skype™ to umer.chaudrey
Hi everyone,

i am a new user of openFoam. using version 2.0

I am trying to implement timeVaryingUniformFixedValue boundary condition for outlet in which Pressure varies with time at a face. I read the initial discussion and tried to implement it. But i am getting this error when i try to run simpleFoam. Can kindly anyone please guide me and help me in this. Thanks

--> FOAM FATAL IO ERROR:
keyword outOfBounds is undefined in dictionary "/home/asml/Umer/openfoam200/Work/test/testtransient/0/p::boundaryField::WALL_c0_f5"

file: /home/asml/Umer/openfoam200/Work/test/testtransient/0/p::boundaryField::WALL_c0_f5 from line 24 to line 26.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400.

Kind Regards,
Umer
umer.chaudrey is offline   Reply With Quote

Old   August 30, 2011, 07:46
Default
  #128
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 17
woody is on a distinguished road
Hey Umer!

RTFM!

outOFBounds warn/clamp/stop;

in your 0/p Field should help!

Regards!

Tobias
__________________
Tobias Holzinger

Chair of Thermodynamics, TU München
woody is offline   Reply With Quote

Old   August 30, 2011, 09:03
Default
  #129
New Member
 
Muhammad Umer Ijaz Chaudrey
Join Date: Aug 2011
Location: Eindhoven, The Netherlands
Posts: 26
Rep Power: 15
umer.chaudrey is on a distinguished road
Send a message via Skype™ to umer.chaudrey
Dear Tobias Holzinger,

Thanks for your reply and feedback. This is how my 0/p file looks. Tried clamp/repeat/stop with outOFBounds. But I still get the same error.

This is how my boundary looks in 0/p file. Rest all others are fine, because if i run with a fixed uniform value the solution runs.

"WALL_c0_f5
{
type timeVaryingUniformFixedValue;
timeDataFileName outlet.dat;
value uniform 82700;
outOFBounds stop; //clamp/repeat
}

The outlet.dat text file is in the form of:
(t0 p0
t1 p1..
....
tN pN
)

But when i try to run simpleFoam, i get the same error.

I don't still understand how to fix it and run my solution. Is there anyother way to implement this too? But this seems simple and its not working for me. Please guide me where I can be wrong. Thanks

Kind Regards,
Umer
umer.chaudrey is offline   Reply With Quote

Old   August 30, 2011, 09:22
Default
  #130
New Member
 
Muhammad Umer Ijaz Chaudrey
Join Date: Aug 2011
Location: Eindhoven, The Netherlands
Posts: 26
Rep Power: 15
umer.chaudrey is on a distinguished road
Send a message via Skype™ to umer.chaudrey
Dear Tobias,

I think I was making a blunder in spellings as pointed in another thread. So I will fix it and check again. Thank you again for your help in identification of problem. Appreciate that.

Kind Regards,

Umer
umer.chaudrey is offline   Reply With Quote

Old   September 1, 2011, 04:23
Default
  #131
Member
 
Tobias Holzinger
Join Date: Mar 2009
Location: Munich, Germany
Posts: 46
Rep Power: 17
woody is on a distinguished road
Looking up the code I don't see stop...

only clamp, warn, repeat and error seem to work...

Regards Tobias
__________________
Tobias Holzinger

Chair of Thermodynamics, TU München
woody is offline   Reply With Quote

Old   September 1, 2011, 09:06
Default
  #132
New Member
 
Muhammad Umer Ijaz Chaudrey
Join Date: Aug 2011
Location: Eindhoven, The Netherlands
Posts: 26
Rep Power: 15
umer.chaudrey is on a distinguished road
Send a message via Skype™ to umer.chaudrey
Dear Tobias,

Yes, got it, it was a small mistake. Thanks for the help.

Regards,

Umer
umer.chaudrey is offline   Reply With Quote

Old   November 30, 2011, 12:06
Default Has anybody ever used cyclic boundary conditions in sonicFoam?
  #133
New Member
 
giovanni silva
Join Date: Jul 2010
Posts: 14
Rep Power: 16
giovanni10 is on a distinguished road
Has anybody ever used cyclic boundary conditions in sonicFoam?
I have used them in mhdFoam ( a solver for magnetohydrodynamics (MHD): incompressible, laminar flow of a conducting fluid under the influence of a magnetic field.). As far as this solver concerned, everything worked well! Nevertheless, when I tried to use cyclic boundary conditions in sonicFoam I had errors!I don`t know how can I write the cyclic boundary conditions for the pressure. I have a 2-D cavity.

For example in sonicFoam/laminar/forwardstep/0/p:
outlet
{
type waveTransmissive;
field p;
phi phi;
rho rho;
psi psi;
gamma 1.4;
fieldInf 1;
lInf 3;
value uniform 1;
}

when I want to declare it as cyclic , I can write:

outlet
{
type cyclic;
}
But I have errors!

Could everybody help me?
Thanks in advance!
giovanni10 is offline   Reply With Quote

Old   May 6, 2015, 07:21
Default Doubt with transient velocity b.c at inlet.
  #134
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi guys;

I am relatively new to the forum.
I am trying to inject an air bubble into a fluid of ethanol and see the flow of the air bubble through a rectangular 2D channel as an initial step based on a paper.

I have a rectangular bubble which I would like to relax it from rectangular to (curved at edges due to the influence of surface tension). So, it can take around 0.003s. (Notice time scale is small and I deal with interFoam solver). After, relaxing i inject with a uniform velocity of 0.0167m/s for a brief period of time say 0.01s.

Could you please let me know what sort of a boundary condition is to be used for the inlet and also at the outlet.

Thanks a lot for your patience and help.
Saideep 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
Transient boundary conditions Dave FLUENT 5 October 30, 2011 09:58
Transient boundary conditions in CFX Sohail Ahmed CFX 2 December 11, 2007 14:01
Transient boundary conditions Yannick FLUENT 6 November 6, 2007 08:47
Transient Boundary Conditions James Date CFX 5 September 13, 2004 12:34


All times are GMT -4. The time now is 14:37.