|
[Sponsors] |
[CAD formats] how to call my .stl file in the terminal |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 9, 2013, 16:11 |
|
#21 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
First off, there is a snappyhexMeshDict file in the tar file from the wiki located here in case you wanted to go there and look further into replicating the case that was provided on the wiki. I went ahead and made a new one that works for the STL file you provided.
My snappyHexMeshDict file is Code:
/*--------------------------------*- C++ -*----------------------------------*\ | o | | | o o | HelyxOS | | o O o | Version: vnull.null.null | | o o | Web: http://www.engys.com | | o | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location system; object snappyHexMeshDict; } castellatedMesh true; snap true; addLayers true; geometry { AskerveinHill.stl { type triSurfaceMesh; name AskerveinHill; } } castellatedMeshControls { features ( ); refinementSurfaces { AskerveinHill { regions { vcg { level (2 3 ); } } level (0 0 ); } } refinementRegions { AskerveinHill { levels (); mode distance; } } locationInMesh (500.0 500.0 250.0 ); maxLocalCells 1000000; maxGlobalCells 2000000; minRefinementCells 0; nCellsBetweenLevels 1; resolveFeatureAngle 30; allowFreeStandingZoneFaces false; } snapControls { nSolveIter 300; nSmoothPatch 3; tolerance 1.0; nRelaxIter 5; nFeatureSnapIter 10; implicitFeatureSnap false; explicitFeatureSnap true; multiRegionFeatureSnap false; } addLayersControls { layers { AskerveinHill_vcg { nSurfaceLayers 4; } } relativeSizes true; expansionRatio 1.0; finalLayerThickness 0.3; minThickness 0.2; nGrow 0; featureAngle 60; slipFeatureAngle 30; nRelaxIter 3; nSmoothSurfaceNormals 1; nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; maxThicknessToMedialRatio 0.3; minMedianAxisAngle 90; nBufferCellsNoExtrude 0; nLayerIter 50; nRelaxedIter 20; } meshQualityControls { maxNonOrtho 65; maxBoundarySkewness 20; maxInternalSkewness 4; maxConcave 80; minFlatness 0.5; minVol 1.00E-13; minTetQuality -1e30; minArea -1; minTwist 0.02; minDeterminant 0.001; minFaceWeight 0.02; minVolRatio 0.01; minTriangleTwist -1; nSmoothScale 4; errorReduction 0.75; } debug 0; mergeTolerance 1E-6; Code:
/*--------------------------------*- C++ -*----------------------------------*\ | o | | | o o | HelyxOS | | o O o | Version: vnull.null.null | | o o | Web: http://www.engys.com | | o | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location system; object blockMeshDict; } convertToMeters 1; vertices ( ( 5.0 5.0 -10.0) ( 2640.0 5.0 -10.0) ( 2640.0 2480.0 -10.0) ( 5.0 2480.0 -10.0) ( 5.0 5.0 500.0) ( 2640.0 5.0 500.0) ( 2640.0 2480.0 500.0) ( 5.0 2480.0 500.0) ); blocks ( hex (0 1 2 3 4 5 6 7) (106 100 21 ) simpleGrading (1 1 1) ); edges ( ); patches ( wall ffminx ( (0 4 7 3) ) wall ffmaxx ( (1 2 6 5) ) wall ffminy ( (0 1 5 4) ) wall ffmaxy ( (3 7 6 2) ) wall ffminz ( (0 3 2 1) ) wall ffmaxz ( (4 5 6 7) ) ); mergePatchPairs ( ); Code:
blockMesh snappyHexMesh |
|
July 9, 2013, 16:17 |
|
#22 | |
Senior Member
izna O'connor
Join Date: Jun 2013
Posts: 143
Rep Power: 12 |
thank you.
froom the onlie package i cannot open it.. this is why i used another askervin .stl which i sent to you. HAving done the modifications, i am able to run the blockmesh and snappyhexmesh. then i run simpleFoam.. and i obtain error.. Quote:
Last edited by izna; July 10, 2013 at 05:28. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 14:30 |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 08:06 |
[swak4Foam] Installation Problem with OF 6 version | Aurel | OpenFOAM Community Contributions | 14 | November 18, 2020 16:18 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 03:23 |