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

Topological mesh changes in parallel

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

Like Tree2Likes
  • 1 Post By hjasak
  • 1 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2009, 14:03
Default Topological mesh changes in parallel
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Dear All,

I had to do some work on topo changes in parallel and there is one IMPORTANT change required with the new svn update. Please pay attention - this WILL break your TOPO CHANGER code.

Due to a possibility that one CPU does do a topo change and another does not, I have introduced a dummy mapPolyMesh and synchronisation across CPUs to deal with it.

The OLD way of signalling no topo change was to put a null pointer inside of autoPtr<mapPolyMesh>

Thus: OLD VARIANT

autoPtr<mapPolyMesh> topoChangeMap = topoChanger_.changeMesh();

bool meshChanged = topoChangeMap.valid();

if (meshChanged)
{


etc.

Now, the pointer will never be NULL, but mapPolyMesh will carry thr information on whether the change happens. The new way of dealing with this is: NEW VARIANT

if (topoChangeMap->morphing())
{

Please keep this in mind: it is important in all cases of topo change.

I will change and keep alive all code components that are checked in; please revisit your local code and ask if there are problems.

Hrv
blttkgl likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   July 26, 2012, 08:52
Default
  #2
Senior Member
 
Join Date: Oct 2009
Posts: 140
Rep Power: 16
Peter_600 is on a distinguished road
Dear Mr. Jasak,

I am having a problem with topochanger in parallel.
Please see here my problem: http://www.cfd-online.com/Forums/ope...-parallel.html

I am using layering for piston motion and tet automotion solver for the valve movement. For a single processor everything works nicely but in parallel it crashes as soon as a layer will be removed.

Best regards
Peter
Peter_600 is offline   Reply With Quote

Old   July 26, 2012, 09:03
Default
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Yes, we have enabled topo changes in parallel about a year ago but there are guidelines and (minor) limitations on what you need to do. Further to that, you will need special domain decomposition and reconstruction tools that deal with parallelism under topo changes.

We currently deal with this under support contracts - please drop me a line and we can discuss what would be appropriate for you.

Hrvoje
hua1015 likes this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak 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
Parallel Moving Mesh Bug for Multi-patch Case albcem OpenFOAM Bugs 17 April 28, 2013 23:44
interDyMFoam, problems in mesh motion solutor run in parallel DLC OpenFOAM 11 December 11, 2012 02:20
Meshing aifoil in ICEM student123a ANSYS Meshing & Geometry 13 December 8, 2010 10:40
Parallel Moving Mesh Bug for Multi-patch Case albcem OpenFOAM 0 May 21, 2009 00:23
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 17:40.