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

[snappyHexMesh] Do only one snappyHexMesh stage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2014, 08:00
Talking Do only one snappyHexMesh stage
  #1
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi,

A very simple question. Sometimes I use snappyHexMesh with addLayers option equal to false, because I am only interested in snapping.

If later I want to do only addLayer phase with the previous result obtained from snap (I have 1 folder from castellated and 2 folder from snap), I set addLayers equal to true and the others to false, but in this way snappy does nothing (in 10 seconds it has finished).

Does anybody know how to do only the addLayers stage if you have previously done the two first steps? I am wasting a lot of meshing time doing the three phases in every mesh...

Thanks people!
Tensian is offline   Reply With Quote

Old   January 31, 2014, 16:53
Default
  #2
Member
 
Julian Langowski
Join Date: May 2011
Location: Bremen, Germany
Posts: 91
Rep Power: 14
Ruli is on a distinguished road
Dear Tensian,
a log of snappy would be helpful.
Anyway, just a guess: Is your startFrom entry in controlDict startTime?

Best regards
Julian
__________________
πάντα ῥεῖ - Heraclitus
Ruli is offline   Reply With Quote

Old   February 2, 2014, 09:19
Smile
  #3
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 12
Tensian is on a distinguished road
Hi jJulian and thanks for your reply,

In my first try, I was writting this:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location system;
object snappyHexMeshDict;
}

castellatedMesh true;
snap true;
addLayers false;

Then I ran snappy. When it has finished (I have now 1 and 2 folders corresponding to castellated and snapped phase), I changed to:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location system;
object snappyHexMeshDict;
}

castellatedMesh false;
snap false;
addLayers true;

and I execute snappy again but nothing is done.

Following your suggestion, I tried the same but I changed in controlDict:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application snappyHexMesh; ///previously I have here the name of the solver for ///simulation

startFrom startTime;
startTime 2; //this means snappy will start from the mesh located at folder "2"?
stopAt endTime;
endTime 3; ////this means snappy will finish when addLayers step writes the
"3" folder?
deltaT 1;
writeControl timeStep;
writeInterval 50;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;

I am wainting yet but I guess this should work fine. What do you think? I thought that controlDict was only related with execution, not with meshing...

Best regards,

Tensian
Tensian is offline   Reply With Quote

Old   February 2, 2014, 12:54
Default
  #4
Member
 
Julian Langowski
Join Date: May 2011
Location: Bremen, Germany
Posts: 91
Rep Power: 14
Ruli is on a distinguished road
Quote:
Originally Posted by Tensian View Post
Following your suggestion, I tried the same but I changed in controlDict:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application snappyHexMesh; ///previously I have here the name of the solver for ///simulation

startFrom startTime;
startTime 2; //this means snappy will start from the mesh located at folder "2"?
stopAt endTime;
endTime 3; ////this means snappy will finish when addLayers step writes the
"3" folder?
deltaT 1;
writeControl timeStep;
writeInterval 50;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;

I am wainting yet but I guess this should work fine. What do you think? I thought that controlDict was only related with execution, not with meshing
Hi Tensian,
I am not absolutely sure if controlDict also controls snappy, just was a guess. I would keep it on startTime "latestTime" and application "SOLVER".

How does your snappyHexMeshDict look like?

By the way, the use of
Code:
Code Markers
makes it easier to read it

Best regards
Julian
__________________
πάντα ῥεῖ - Heraclitus
Ruli 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
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 02:54
[snappyHexMesh] SnappyHexMesh castellation stage creates hole in surface where mesh flows into domain Dav3dum OpenFOAM Meshing & Mesh Conversion 0 August 30, 2017 04:19
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. jasv OpenFOAM Meshing & Mesh Conversion 4 May 10, 2016 02:55
[snappyHexMesh] Refinement at wrong stage in SnappyHexMesh james.conger OpenFOAM Meshing & Mesh Conversion 1 November 18, 2015 20:03
[snappyHexMesh] snappyHexMesh. irregular cells on snap stage Svensen OpenFOAM Meshing & Mesh Conversion 0 April 3, 2015 03:12


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