CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread 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: 171
Rep Power: 13
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: Germany
Posts: 1,377
Rep Power: 29
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.
akidess is offline   Reply With Quote

Old   January 7, 2013, 11:18
Default
  #4
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 13
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: 5
Rep Power: 14
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 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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10: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 16: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 15:08


All times are GMT -4. The time now is 23:46.