|
[Sponsors] |
[snappyHexMesh] stl file not showing after snappyhexmesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 22, 2023, 10:21 |
stl file not showing after snappyhexmesh
|
#1 |
New Member
Join Date: Feb 2023
Posts: 1
Rep Power: 0 |
Hello, I tried to convert an stl file using snappyHexMesh. I had no errors running blockMesh > surfaceFeatures > snappyHexMesh but then when I opened the file in paraView it only shows my blockMesh region. Below are my codes, can anyone spot the problems?
blockMeshDict Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 100; vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 1) (1 0 1) (1 1 1) (0 1 1) ); blocks ( hex (0 1 2 3 4 5 6 7) (16 16 16) simpleGrading (1 1 1) ); boundary ( patch0_half0 { type cyclic; neighbourPatch patch0_half1; faces ( (0 3 2 1) ); } patch0_half1 { type cyclic; neighbourPatch patch0_half0; faces ( (4 5 6 7) ); } patch1_half0 { type cyclic; neighbourPatch patch1_half1; faces ( (0 4 7 3) ); } patch1_half1 { type cyclic; neighbourPatch patch1_half0; faces ( (2 6 5 1) ); } patch2_half0 { type cyclic; neighbourPatch patch2_half1; faces ( (3 7 6 2) ); } patch2_half1 { type cyclic; neighbourPatch patch2_half0; faces ( (1 5 4 0) ); } ); // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; object surfaceFeaturesDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // surfaces ( "volume3.stl" "inlet3.stl" "outlet3.stl" "walls3.stl" ); includedAngle 150; subsetFeatures { nonManifoldEdges yes; openEdges yes; } trimFeatures { minElem 0; minLen 0; } writeObj yes; // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; object snappyHexMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg" castellatedMesh on; snap off; addLayers off; geometry { volume { type triSurfaceMesh; file "volume3.stl" } walls { type triSurfaceMesh; file "walls3.stl" } inlet { type triSurfaceMesh; file "inlet3.stl" } outlet { type triSurfaceMesh; file "outlet3.stl" } refinementBox { type searchableBox; min (-1.0 -0.7 0.0); max (8.0 0.7 2.5); } }; castellatedMeshControls { features ( // { file "volume3.eMesh"; level 2; } ); refinementSurfaces { volume3 { level (2 2); patchInfo { type wall; } regions { <inletRegion> { level (2 2); patchInfo { type patch; inGroups (inlet); } } <outletRegion> { level (2 2); patchInfo { type patch; inGroups (outlet); } } } } } refinementRegions { volume3 { mode inside; level 2; } } insidePoint (0.50 0.50 0.60); // Offset from (0 0 0) to avoid // coinciding with face or edge nCellsBetweenLevels 3; } snapControls { // explicitFeatureSnap on; // implicitFeatureSnap off; } addLayersControls { layers { "volume3.stl" { nSurfaceLayers 2; } } relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; // maxThicknessToMedialRatio 0.3; } writeFlags ( // scalarLevels layerSets layerFields ); mergeTolerance 1e-6; // ************************************************************************* // |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |