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

[surface handling] surfaceFeatureExtract

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

Like Tree1Likes
  • 1 Post By alexB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2015, 10:57
Default surfaceFeatureExtract
  #1
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 10
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, 15:34
Default
  #2
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 10
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, 15:19
Default surfaceFeatureExtract
  #3
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 10
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, 13:16
Default
  #4
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
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
EnricoCrobu likes this.
__________________
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, 15:44
Default
  #5
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 10
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, 18:00
Default
  #6
Member
 
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11
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, 10:03
Smile
  #7
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 10
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 Search this Thread
Search this Thread:

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



All times are GMT -4. The time now is 07:37.