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

surfaceFeatureExtract

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 18, 2015, 09:57
Default surfaceFeatureExtract
  #1
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 11
Rep Power: 2
Ron de Vos is on a distinguished road
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
Ron de Vos is offline   Reply With Quote

Old   June 18, 2015, 14:34
Default
  #2
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 11
Rep Power: 2
Ron de Vos is on a distinguished road
I am looking for the the commandline of surfaceFeatureExtract.
Ron
Ron de Vos is offline   Reply With Quote

Old   June 20, 2015, 14:19
Default surfaceFeatureExtract
  #3
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 11
Rep Power: 2
Ron de Vos is on a distinguished road
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
Ron de Vos is offline   Reply With Quote

Old   June 21, 2015, 12:16
Default
  #4
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 69
Rep Power: 2
alexB is on a distinguished road
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
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   June 21, 2015, 14:44
Default
  #5
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 11
Rep Power: 2
Ron de Vos is on a distinguished road
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
Ron de Vos is offline   Reply With Quote

Old   June 21, 2015, 17:00
Default
  #6
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 69
Rep Power: 2
alexB is on a distinguished road
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
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
alexB is offline   Reply With Quote

Old   June 22, 2015, 09:03
Smile
  #7
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 11
Rep Power: 2
Ron de Vos is on a distinguished road
Thank You Alex. The eMesh has succeed.
Ron
Ron de Vos is offline   Reply With Quote

Reply

Tags
surfacefeatureextract

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:28.