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

mapFields error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2016, 12:22
Default mapFields error
  #1
New Member
 
K.H
Join Date: Feb 2016
Posts: 15
Rep Power: 10
urion is on a distinguished road
Hi foamers I would appreciate any kind of help. I am trying to mapfields between to meshes with the same geometry but different number of patches/boundarys. The geometry is just a simple channel and the different number of patches is necessary!


For example
Source mesh 1:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.1 |
| \\ / A nd | Web: http://www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 -0.050 0) // 0
(3 -0.05 0) // 1
(0 0.046 0) // 2
(3 0.046 0) // 3
(0 0.5 0) // 4
(3 0.5 0) // 5
(0 0.954 0) // 6
(3 0.954 0) // 7
(0 1.05 0) // 8
(3 1.05 0) // 9

(0 -0.05 1.5) // 10
(3 -0.05 1.5) // 11
(0 0.046 1.5) // 12
(3 0.046 1.5) // 13
(0 0.5 1.5) // 14
(3 0.5 1.5) // 15
(0 0.954 1.5) // 16
(3 0.954 1.5) // 17
(0 1.05 1.5) // 18
(3 1.05 1.5) // 19


);

blocks
(



hex (0 1 3 2 10 11 13 12) (250 40 125) simpleGrading (1 1 1)
hex (2 3 5 4 12 13 15 14) (250 64 125) simpleGrading (1 6.437913785 1)
hex (4 5 7 6 14 15 17 16) (250 64 125) simpleGrading (1 0.15532981 1)
hex (6 7 9 8 16 17 19 18) (250 40 125) simpleGrading (1 1 1)

);

edges
(
);

boundary
(
bottomWall
{
type wall;
faces
(
(0 1 11 10)
);
}

topWall
{
type wall;
faces
(
(8 18 19 9)
);
}


sides1
{
type cyclic;
faces
(
(0 2 3 1)
(10 11 13 12)
);
}

sides2
{
type cyclic;
faces
(
(2 4 5 3)
(12 13 15 14)
);
}

sides3
{
type cyclic;
faces
(
(4 6 7 5)
(14 15 17 16)
);
}

sides4
{
type cyclic;
faces
(
(6 8 9 7)
(16 17 19 18)
);
}


inout1
{
type cyclic;
faces
(
(1 3 13 11)
(0 10 12 2)
);
}

inout2
{
type cyclic;
faces
(
(3 5 15 13)
(2 12 14 4)
);
}

inout3
{
type cyclic;
faces
(
(5 7 17 15)
(4 14 16 6)
);
}

inout4
{
type cyclic;
faces
(
(7 9 19 17)
(6 16 18 8)
);
}


);

mergePatchPairs
(
);

// ************************************************** *********************** //


target mesh:


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 -0.05 0)
(3 -0.05 0)
(3 1.05 0)
(0 1.05 0)
(0 -0.05 1.5)
(3 -0.05 1.5)
(3 1.05 1.5)
(0 1.05 1.5)
);

blocks
(
hex (0 1 2 3 4 5 6 7) (20 7 10) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
sides1
{
type cyclic;
faces
(

(0 3 2 1)
(4 5 6 7)
);
}

inout1
{
type cyclic;
faces
(
(0 4 7 3)
(2 6 5 1)
);
}

bottomWall
{
type wall;
faces
(
(1 5 4 0)

);
}

topWall
{
type wall;
faces
(
(3 7 6 2)
);
}
);
mergePatchPairs
(
);
// ************************************************** *********************** //

I know that I can not use mapFields <source case> -consistent because I have a different number of patches but I do not know how to resolve the problem with mapFieldsdict.
Thanks in advance!!!!
urion 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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