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

How to apply a function as boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2009, 03:48
Default Dear Foamers, I'm a newbie
  #1
New Member
 
Chuang Gao
Join Date: Mar 2009
Posts: 12
Rep Power: 17
coompressor is on a distinguished road
Dear Foamers,
I'm a newbie here. For my question, I want to add a function with time and circumferential position as the variables for the inlet boundary condition.
The study object is a circular ring and the inlet radius is R2 while the outlet one is R3. The inlet condition should be V2=V_mean+sin(Omega*t+phi), in which the Omega is the angular velocity and a constant in this expression. V_mean and phi (initial position) are also constants, t is the time for unsteady calculation. Can such kind of boundary condition be given? For fluent, this is very easy through using the UDF.
Thanks all.
coompressor is offline   Reply With Quote

Old   January 15, 2009, 03:49
Default i need to run a combustion pro
  #2
New Member
 
VIJAYAKUMAR R
Join Date: Mar 2009
Location: BANGALORE, KARNATAKA, INDIA
Posts: 20
Rep Power: 17
vijayakumar is on a distinguished road
i need to run a combustion problem.... i used XI-foam as solver, while running some errors are coming... i need to know which solver is good for combustion problem.. and few guidelines for solving combustion problem.
vijayakumar is offline   Reply With Quote

Old   January 15, 2009, 05:07
Default OK. Let's see: http://openfoam
  #3
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
OK. Let's see: http://openfoamwiki.net/index.php/Ho..._Message_Board

You hit the points 1,2,3,5 and 7. Not a bad score. But it means it is very unlikely that you'll get an answer. No offense.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 15, 2009, 05:53
Default Ok, I'd like to use the DNS so
  #4
New Member
 
Chuang Gao
Join Date: Mar 2009
Posts: 12
Rep Power: 17
coompressor is on a distinguished road
Ok, I'd like to use the DNS solver in OpenFoam 1.5.
Is this information clear?
coompressor is offline   Reply With Quote

Old   January 15, 2009, 06:14
Default Hi Chuang I am certain that
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Chuang

I am certain that Bernhard's comment was not minded on you, but on the person who hijacked the thread.

As a answer to your question, I cannot see any spatial variation in your boundary condition, thus you might be able to achieve what you are after by applying "timeVarying<something>". I am not at a OF-machine at the present, but you should be able to find it using the search function.

Best regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 15, 2009, 14:47
Default Hi Chunag! Niels is right.
  #6
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
Hi Chunag!

Niels is right. I meant the other poster. Sorry if I upset you

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 15, 2009, 21:26
Default Hi, Niels and Bernhard, If
  #7
New Member
 
Chuang Gao
Join Date: Mar 2009
Posts: 12
Rep Power: 17
coompressor is on a distinguished road
Hi, Niels and Bernhard,
If you plot the function I posted, it has nonuniform distribution along the circumferential direction. for a function, such as sin(n*theta) is a kind of flower function. theta is the circumferential coordinate. I've noticed a poster which talked about parabolic inlet boundary condition. But there do existed some differences. Can anybody give me a hint?
coompressor is offline   Reply With Quote

Old   January 18, 2009, 15:03
Default Hi Chuang There is not prob
  #8
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Chuang

There is not problem in specifying boundary conditions, which are varying both in space and time.

I you want to give a Dirichlet condition, then I would recommend you to find parabolicInlet-BC, which you will be able to find on this forum. This you should be able to modify to the purpose you are considering.

When you have implemented your own conditions just compile the BC using the wmake-procedure, link the BC to the solver of your choice, and you should be well off.

Good luck,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 19, 2009, 18:45
Default Hi Niels, Thx for your kin
  #9
New Member
 
Chuang Gao
Join Date: Mar 2009
Posts: 12
Rep Power: 17
coompressor is on a distinguished road
Hi Niels,
Thx for your kind help! I'll try it and post my results here.

Best Regards,
Chuang Gao
coompressor is offline   Reply With Quote

Old   February 12, 2009, 10:22
Default Hi everybody, I'm dealing wit
  #10
Member
 
Andrea Petronio
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 43
Rep Power: 17
andrea is on a distinguished road
Hi everybody,
I'm dealing with boundary condition as function of a calculated scalar fields. I think to derive it from a fixedValue bc. Someone have already done something similar?
andrea 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
How to apply a function as boundary condition coompressor OpenFOAM Running, Solving & CFD 0 January 13, 2009 03:50
How can apply mass flow rate boundary condition? Sima Phoenics 1 December 1, 2007 18:55
Apply boundary condition functions billy OpenFOAM Pre-Processing 7 December 18, 2005 21:22
How to set a boundary condition as a function respect to time chnrdu OpenFOAM Running, Solving & CFD 2 June 17, 2005 04:18
Random function UDF for boundary condition Chris FLUENT 4 March 28, 2003 15:38


All times are GMT -4. The time now is 01:29.