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

in one solver, two sets of meshes are used?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 6, 2013, 14:03
Question in one solver, two sets of meshes are used?
  #1
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 4
hz283 is on a distinguished road
Hi All,

In Openfoam, within one solver, how to realize that some of the governing equations are in one set of mesh (for instance, fine mesh), and others are solved in another set of coarse mesh? the data transfer between two meshes are done by interpolation during each time step. Does anybody know something about this problem? Could you please give me some hints about this?

best,
h
hz283 is offline   Reply With Quote

Old   January 6, 2013, 15:30
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi H,

Quick answer: look into the solvers with the name patterns "chtMultiRegion*Foam" and "*MRF*". You can search for them with these commands:
Code:
find $FOAM_SOLVERS -name "chtMultiRegion*Foam.C"
find $FOAM_SOLVERS -name "*MRF*.C"
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 7, 2013, 11:14
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Bruno, those solvers couple two or more adjacent meshes. I believe the question was about overlapping meshes. This would e.g. allow you to solve velocity on a fine mesh and temperature on a coarse mesh. Unfortunately I don't have an answer to that question, I don't think it's been done so far.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   January 7, 2013, 11:18
Default
  #4
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 4
hz283 is on a distinguished road
Quote:
Originally Posted by akidess View Post
Bruno, those solvers couple two or more adjacent meshes. I believe the question was about overlapping meshes. This would e.g. allow you to solve velocity on a fine mesh and temperature on a coarse mesh. Unfortunately I don't have an answer to that question, I don't think it's been done so far.
Hi Anton,

You are correct. But I do not how to realize it now.

best regards,
H
hz283 is offline   Reply With Quote

Old   January 7, 2013, 12:15
Smile get rid of routine head files.
  #5
New Member
 
Join Date: Jan 2012
Posts: 3
Rep Power: 5
codinging is on a distinguished road
to implement this, you have to rewrite the main program without using the routine headfiles such as the setRootCase, createMesh, createTime, createFields. For interpolation between different meshes, you can refer to mapfield tool in the userguide, maybe just copy part of the code to your own program. It would be wise to write your own interpolation function if you know the detail how the coarse mesh is refined. Not difficult, but a time-consuming task.
codinging is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Unexplained Error during Solver Runs cfb CFX 6 November 9, 2012 16:42
Strange residuals of the Density Based Solver Pat84 FLUENT 0 October 22, 2012 15:59
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


All times are GMT -4. The time now is 18:38.