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

[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2015, 10:13
Default snappyhexmesh doesn't creat mesh in parallel issue?
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hello,

I'd like to speedup meshing with snappyhexmesh. Everything works fine, when I run it on one core but my i7 offers "8" so let's make use of them.

I had a look at the motorbike case, used the decomposepardict... there are no errors but snappyhexmesh doesn't create a mesh.

Where's the error?

This is my Allmesh script:

#!/bin/sh

# Determine OpenFOAM version
OF_MAJOR=`echo $WM_PROJECT_VERSION | cut -d'.' -f1`
OF_MINOR=`echo $WM_PROJECT_VERSION | cut -d'.' -f2`

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Set variable to distinguish between OF 2.2 and older versions
if [ $OF_MAJOR -le 2 -a $OF_MINOR -le 1 ]; then
OLD=1
else
OLD=0
fi


## Make 3D mesh in slab of cells.
cd airfoil_snappyHexMesh
runApplication blockMesh > output/1-blockMesh.log 2>&1

if [ $OLD -eq "1" ]; then
runApplication surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/airfoil.stl airfoil > output/2-surfaceFeatureExtract.log 2>&1
else
runApplication surfaceFeatureExtract > output/2-surfaceFeatureExtract.log 2>&1
fi


# THIS WORKS
# running snappyhexmesh on one core of the i7 processor
#runApplication snappyHexMesh -overwrite > output/3-snappyHexMesh.log 2>&1
#rm -f 0/*

# THIS DOESN'T WORK
# running snappyhexmesh on 8 cores of the i7 processor
runApplication decomposePar
runParallel snappyHexMesh 8 -overwrite > output/3-snappyHexMesh.log 2>&1
rm -f 0/*
runApplication reconstructParMesh -constant


This is my decomposepardict:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}

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

numberOfSubdomains 8;

method hierarchical;
//method ptscotch;

simpleCoeffs
{
n (4 2 1);
delta 0.001;
}

hierarchicalCoeffs
{
n (4 2 1);
delta 0.001;
order xyz;
}

manualCoeffs
{
dataFile "cellDecomposition";
}


// ************************************************** *********************** //
klausb is offline   Reply With Quote

Old   March 7, 2015, 12:55
Default
  #2
Member
 
Pascal Balz
Join Date: Feb 2015
Location: Germany
Posts: 44
Rep Power: 11
pbalz is on a distinguished road
Hi Klaus,

if your problem is still present, try the following code:
Code:
runApplication decomposePar
foamJob -parallel -screen snappyHexMesh
reconstructParMesh -latestTime
This works fine for me.
pbalz 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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 16:15
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 03:54
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
Issue with arbitrary Lagrangian-Eulerian method and mesh optimization mikolchon Main CFD Forum 0 August 16, 2014 16:50
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


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