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

mapFields Error with snappyHexMesh Source Added Layers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 17:01
Default mapFields Error with snappyHexMesh Source Added Layers
  #1
New Member
 
AI
Join Date: Jun 2014
Posts: 17
Rep Power: 11
sherif35 is on a distinguished road
I get the error below when I try to mapFields from coarser mesh to finer mesh. I know what causes the issue but I don't know how to resolve it.

The source mesh was created using blockMesh and then I use " snappyHexMesh -overwrite" addLayers option to add some BL cells around the body surface. Which changes the source mesh size from 331200 to 358080.

The problem is mapFields reads the source original (before snappy) mesh size and stops when starts reading the source data fields which have data for 358080 cells.

The strange thing is that mapFields reads the target final mesh size (after snappy).

Does anyone knows how to correct this issue? Thank you.

The error:

Create databases as time
Case : ../103_30_12w_08_3d_8
nProcs : 1

Source time: 40
Target time: 40

Create meshes

Source mesh size: 331200 Target mesh size: 457120


Consistently creating and mapping fields for time 40

Creating mesh-to-mesh addressing for region0 and region0 regions using cellVolumeWeight
Overlap volume: 3352.14646954
Creating AMI between source patch cylinder and target patch cylinder using faceAreaWeightAMI
AMI: Creating addressing and weights between 1920 source faces and 2560 target faces
AMI: Patch source sum(weights) min/max/average = 1.00002409633, 1.00003212822, 1.00002677363
AMI: Patch target sum(weights) min/max/average = 1, 1.00002855847, 1.00001427923
Creating AMI between source patch inlet and target patch inlet using faceAreaWeightAMI
AMI: Creating addressing and weights between 960 source faces and 1120 target faces
AMI: Patch source sum(weights) min/max/average = 1, 1, 1
AMI: Patch target sum(weights) min/max/average = 1, 1, 1
Creating AMI between source patch outlet and target patch outlet using faceAreaWeightAMI
AMI: Creating addressing and weights between 960 source faces and 1120 target faces
AMI: Patch source sum(weights) min/max/average = 1, 1, 1
AMI: Patch target sum(weights) min/max/average = 1, 1, 1
Creating AMI between source patch sideWall_1 and target patch sideWall_1 using faceAreaWeightAMI
AMI: Creating addressing and weights between 2520 source faces and 2680 target faces
AMI: Patch source sum(weights) min/max/average = 1, 1, 1
AMI: Patch target sum(weights) min/max/average = 1, 1, 1
Creating AMI between source patch sideWall_2 and target patch sideWall_2 using faceAreaWeightAMI
AMI: Creating addressing and weights between 2520 source faces and 2680 target faces
AMI: Patch source sum(weights) min/max/average = 1, 1, 1
AMI: Patch target sum(weights) min/max/average = 1, 1, 1
interpolating k_0


--> FOAM FATAL IO ERROR:
size 358080 is not equal to the given value of 331200

file: ../103_30_12w_08_3d_8/40/k_0 from line 18 to line 54.

From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/sergio/rpmbuild/BUILD/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/Field.C at line 292.

FOAM exiting
sherif35 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
[Other] OpenFOAM Installation for navalFoam sachinlb OpenFOAM Community Contributions 22 July 28, 2017 05:26
[snappyHexMesh] Adding layers goes wrong with SnappyHexMesh Elise OpenFOAM Meshing & Mesh Conversion 1 April 22, 2013 02:32
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


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