|
[Sponsors] |
[snappyHexMesh] Do only one snappyHexMesh stage |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 31, 2014, 08:00 |
Do only one snappyHexMesh stage
|
#1 |
Senior Member
James
Join Date: May 2013
Posts: 116
Rep Power: 12 |
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! |
|
January 31, 2014, 16:53 |
|
#2 |
Member
Julian Langowski
Join Date: May 2011
Location: Bremen, Germany
Posts: 91
Rep Power: 14 |
Dear Tensian,
a log of snappy would be helpful. Anyway, just a guess: Is your startFrom entry in controlDict startTime? Best regards Julian
__________________
πάντα ῥεῖ - Heraclitus |
|
February 2, 2014, 09:19 |
|
#3 |
Senior Member
James
Join Date: May 2013
Posts: 116
Rep Power: 12 |
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 |
|
February 2, 2014, 12:54 |
|
#4 | |
Member
Julian Langowski
Join Date: May 2011
Location: Bremen, Germany
Posts: 91
Rep Power: 14 |
Quote:
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 Best regards Julian
__________________
πάντα ῥεῖ - Heraclitus |
||
|
|
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 |