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

[swak4Foam] groovyBC and residualControl

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2014, 16:23
Default groovyBC and residualControl
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

can someone tell me if it is possible to use the groovyBC and change the condition if there is some residualControl criterion reached?

Would be very interesting

If not, is it possible to do that in a easy way. For example:

  • steadyState solver
  • calculate till p, U < 1e-4
  • change U_inlet
  • calculate till p, U < 1e-4
  • .
  • .
  • .
  • till end criterion is reached (stop)

Thanks in advance
Regards
Tobi
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 7, 2014, 17:26
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 Tobi View Post
Hi all,

can someone tell me if it is possible to use the groovyBC and change the condition if there is some residualControl criterion reached?

Would be very interesting

If not, is it possible to do that in a easy way. For example:

  • steadyState solver
  • calculate till p, U < 1e-4
  • change U_inlet
  • calculate till p, U < 1e-4
  • .
  • .
  • .
  • till end criterion is reached (stop)

Thanks in advance
Regards
Tobi
Currently I'm not aware of a way to do this. The value of the residual is usually not available outside the solver.

Possibility would be to use an appropriate fvOptions-element to get the residual of the matrix, write that to a global variable which the groovyBC could then use. But that fvOptions is yet unwritten.
__________________
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   September 13, 2014, 18:17
Default
  #3
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Dear Tobi,

I think this can be done using a simple bash script.
Do you want to continue solving from the previous results (which has reached the criterion) or start a new case with initial conditions?

Both are possible using bash, though.
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   September 14, 2014, 09:24
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi, well I solved that problem using groovy but without convergence check... (: using bash script would work too.
__________________
Keep foaming,
Tobias Holzmann
Tobi 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



All times are GMT -4. The time now is 04:52.