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

Boundary

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2013, 15:51
Default Boundary
  #1
New Member
 
Aria
Join Date: Nov 2012
Posts: 5
Rep Power: 13
ariaballack is on a distinguished road
Hi everybody,

I am writing a solver for concentration diffusion. Somehow I need to set a boundary condition for concentration so that instead of a fixedValue for a wall, the value at the wall could have a new value after each time step and the value is the average of for example concentration (concentration has already been solved in solver). what type of boundary type should i use and how?
thanks
ariaballack is offline   Reply With Quote

Old   April 19, 2013, 16:51
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Hi Aria,

Is it the scalar transport (convection-diffusion) equation that you are solving? If so, I would advise you to pick a zeroGradient BC. This prevents any diffusion over the wall boundary from occurring.

Cheers,

L
Lieven is offline   Reply With Quote

Old   April 20, 2013, 11:03
Default
  #3
New Member
 
Aria
Join Date: Nov 2012
Posts: 5
Rep Power: 13
ariaballack is on a distinguished road
Hi,
Thanks for your fast reply,
Yes, thats what i solve, but the particel at surface has to be renewed after each five second with a concentration equal to average one. Thats why i need a flexible BC.
ariaballack is offline   Reply With Quote

Old   April 21, 2013, 04:13
Default
  #4
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Hi Aria,

The boundary condition you want to impose is not really clear to me. Do you have a mathematical expression for it to clearify it?
E.g. the five seconds, is this equal to the preset time step?

Cheers,

L
Lieven is offline   Reply With Quote

Old   April 22, 2013, 09:16
Default
  #5
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello,

Take a look at groovyBC: you can use a mixed BC (zeroGradient/value), and switch with the expression value you want (like every 5 s), and calculate the average concentration you need.

NB: And like Lieven say, take care when you use fixedValue, since you have no control over the diffusive flux.

regards,
olivier
olivierG is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 06:58
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54
Boundary Conditions Jan Ramboer Main CFD Forum 11 August 16, 1999 09:59


All times are GMT -4. The time now is 02:19.