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

Mapping fields in parallel between two regions during runtime

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2017, 17:46
Question Mapping fields in parallel between two regions during runtime
  #1
New Member
 
Ehimen
Join Date: Jun 2016
Posts: 12
Rep Power: 7
Elliptic CFD is on a distinguished road
Hello,

I am having problems mapping fields between two regions within my solver in parallel. I am using OpenFOAM+ 3.0 and the meshToMesh0 utility.

When I run a serial case, the mapping function works well. I will give a brief description of the serial code within the solver.

The source and target meshes are constructed as srcMesh_ and tgtMesh_ respectively. The mapping function for a volume vector field is defined as:

void interpToMesh0::interpField(const volVectorField& srcVec, volVectorField& tgtVec)
{
meshToMesh0 interpolatorObj_(srcMesh_, tgtMesh_ , patchMap_, cuttingPatches);
interpolatorObj_.interpolate(tgtVec, srcVec, mapOrder_, eqOp<vector>());
}

This code works fine in serial within the solver. The problem starts when the solver is run in parallel. Modifications are made to the vector mapping function in line with the mapFields utility already supplied in OpenFOAM 3 or 4. For instance, addProcessorPatches(tgtMesh_ , cuttingPatches) replaces cuttingPatches.

My question is how to access the decomposed source and target meshes during runTime and incorporate the submeshes into the meshToMesh0 object of the solver? mapFields in OpenFOAM works by creating the submeshes before activating the mapping utility. In my case, the meshes have already been declared at runTime, and I will like to know how to access the different decomposed parts of the source and target meshes during runTime.

Thank you
Elliptic CFD is offline   Reply With Quote

Reply

Tags
decomposition, map fields, mesh, openfoam 3.0.1, parallel

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
Mapping values from 2D mesh to 3D mesh boundary during runtime benk OpenFOAM Programming & Development 1 June 13, 2014 02:39
Mapping fields from fvMesh to tetPolyMesh hannes OpenFOAM Running, Solving & CFD 2 August 28, 2008 05:42
MultiDirRefinement class Bug on mapping fields zurdo OpenFOAM Bugs 12 December 17, 2007 04:54
Error after mapping fields alberto OpenFOAM Pre-Processing 0 November 2, 2006 18:47
Parallel running runtime modifiable timestep sampaio OpenFOAM Running, Solving & CFD 1 May 26, 2005 19:18


All times are GMT -4. The time now is 15:03.