CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [surface handling] surfaceFeatureExtract (https://www.cfd-online.com/Forums/openfoam-meshing/154855-surfacefeatureextract.html)

Ron de Vos June 18, 2015 09:57

surfaceFeatureExtract
 
I work on DTCHull but by snappyhexmesh I get

FOAM FATAL IO ERROR:
Could not open "C:/OpenFOAM/cygwin64/home/Windschip/OpenFOAM/Windschip-2.3.x/run/DTCHull/constant/triSurface/DTC-scaled.eMesh"

I dont know how I get . eMesh in the triSurface
Ron:confused:

Ron de Vos June 18, 2015 14:34

I am looking for the the commandline of surfaceFeatureExtract.:confused:
Ron

Ron de Vos June 20, 2015 14:19

surfaceFeatureExtract
 
I try but i can't find the solution to change DTC-scaled.stl in DTC-scaled .emesh
I haven seen some solutions but it looks like that in OpenFoam 2.3.x something is changed. Which commandoline is needed to change the .stl in . eMesh

alexB June 21, 2015 12:16

Hi Ron,

you just need to use the command "surfaceFeatureExtract" in your case folder.
To use the command you need to store your .stl -files in /constant/triSurface and make sure you have a surfaceFeatureExtractDict" -file in /system .

A surfaceFeatureExtractDict should look like :
Code:

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

main.stl
{
    // How to obtain raw features (extractFromFile || extractFromSurface)
    extractionMethod    extractFromSurface;

    extractFromSurfaceCoeffs
    {
        // Mark edges whose adjacent surface normals are at an angle less
        // than includedAngle as features
        // - 0  : selects no edges
        // - 180: selects all edges
        includedAngle  150;
    }

    // Write options

        // Write features to obj format for postprocessing
        writeObj                yes;
}

orifice.stl
{
    extractionMethod    extractFromSurface;
    extractFromSurfaceCoeffs
    {
      includedAngle  150;
    }
    writeObj                yes;
}

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

You just have to modify the names to fit to your .stl -files... the values and options don't need adjustment.

regards
Alex

Ron de Vos June 21, 2015 14:44

Hi Alex
The surfaceFeatureExtractdict file is in the system of DTCHull and also the dtc-scaled stil is in it
when I type in the DTCHull case folder:
surfaceFeatureExtract/constant/triSurface/DTC-scaled.stl DTC-scaled
I get
bash: surfaceFeatureExtract/constant/triSurface/DTC-scaled.stl: No such file or directory

Windschip@Asus ~/OpenFOAM/Windschip-2.3.x/run/DTCHull/system
$ Usage: C:\OpenFOAM\cygwin64\opt\OpenFOAM\OpenFOAM-2.3.x\platforms\cygwin64mingw-w64DPOpt\bin\surfaceFeatureExtract.exe [OPTIONS]
bash: Usage:: opdracht niet gevonden

What is it I do wrong?
Ron

alexB June 21, 2015 17:00

Hi Ron,

no need to use this big font ;)

The stl files have to be in /constant/triSurface folder if it not exists... create it.

When you are in your DTCHull case folder

just type "surfaceFeatureExtract"

regards
Alex

Ron de Vos June 22, 2015 09:03

Thank You Alex. The eMesh has succeed.
Ron


All times are GMT -4. The time now is 10:44.