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

change fixedGradient BC during run

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2011, 06:29
Default change fixedGradient BC during run
  #1
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
Hello,

i want to change my boundary conditions during the run of my solver.
So specifying Dirichlet BC was more or less easy to implement (overwriting the boundaryFields of the variables).

Now I want to overwrite the value of the fixedGradient BC during the runtime for other variables.
Is this possible and easy to access?

Thank you for any advice,

rupert
fisch is offline   Reply With Quote

Old   June 7, 2011, 11:16
Default
  #2
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 fisch View Post
Hello,

i want to change my boundary conditions during the run of my solver.
So specifying Dirichlet BC was more or less easy to implement (overwriting the boundaryFields of the variables).

Now I want to overwrite the value of the fixedGradient BC during the runtime for other variables.
Is this possible and easy to access?

Thank you for any advice,

rupert
Use groovyBC? Unless you really want to write your BC in C++
gschaider is offline   Reply With Quote

Old   June 7, 2011, 11:41
Default
  #3
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
thanks bernhard for the quick reply,

there are unfortunately questions left:
Is there no problem using the groovyBC specifying values for "valueExpression" and for "gradientExpression" ???
I thought that it is the only way to specify (e.g. using) simpleFoam either the velocity as dirichlet and the pressure as neumann or the other way around. Now it seems that i can specify on both fields dirichlet and neumann!?

Can you explain that to me?

One more thing: What is, if i dont specify one of these two keywords ( "valueExpression" or "gradientExpression)??

thanks a lot,
rupert
fisch is offline   Reply With Quote

Old   June 8, 2011, 07:53
Default
  #4
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 fisch View Post
thanks bernhard for the quick reply,

there are unfortunately questions left:
Is there no problem using the groovyBC specifying values for "valueExpression" and for "gradientExpression" ???
I thought that it is the only way to specify (e.g. using) simpleFoam either the velocity as dirichlet and the pressure as neumann or the other way around. Now it seems that i can specify on both fields dirichlet and neumann!?

Can you explain that to me?
groovyBC is a child class of the mixed-BC. Have a look in the USerGuide for that
Quote:
Originally Posted by fisch View Post
One more thing: What is, if i dont specify one of these two keywords ( "valueExpression" or "gradientExpression)??

thanks a lot,
rupert
That is described here:

http://openfoamwiki.net/index.php/Co...s_in_the_patch
gschaider is offline   Reply With Quote

Old   June 8, 2011, 13:34
Default
  #5
Member
 
fisch
Join Date: Feb 2010
Posts: 97
Rep Power: 16
fisch is on a distinguished road
Thanks a lot Bernhard,
it seems that it works.

rupert
fisch 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
fixedGradient BC type with the channelOodles solver Bedotto OpenFOAM Running, Solving & CFD 5 April 15, 2019 10:49
How to change density in OpenFoam zhaowei OpenFOAM Running, Solving & CFD 8 November 5, 2018 11:37
Change cell zone index/thread during simulation neilduffy1024 FLUENT 0 January 17, 2011 10:40
Windows 64-bit, Distributed Parallel Run Issues... Erich CFX 3 March 28, 2006 17:36
problems with LES run Tim CFX 1 February 27, 2006 08:28


All times are GMT -4. The time now is 20:06.