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

[surface handling] surfaceFeatureExtract generated features in .eMesh.gz format in triSurface file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2016, 17:43
Default surfaceFeatureExtract generated features in .eMesh.gz format in triSurface file
  #1
New Member
 
Join Date: Nov 2015
Posts: 28
Rep Power: 11
jiaodanuma is on a distinguished road
Hello,

Sorry for the simple question, but I'm confused with when I run surfaceFeatureExtract to extract the edge features, .eMesh.gz format instead of .eMesh format generated in the /constant/triSurface file as illustrated in the attached picture triSurface. Besides, .gz format generated in extendedFeatureEdgeMesh file too. After decompressed the .gz file using gzip, the file showing no features were extracted:
[CODE]
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class featureEdgeMesh;
location "constant/triSurface";
object cube.eMesh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


// points:

0


// edges:

0

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


// ************************************************** *********************** //
[CODE]

The setting of surfaceFeatureExtractDict is listed as following, which is exactly the same with case flange provided by the tutorial and I can't find any utility is related with the writing format.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      surfaceFeatureExtractDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

cube.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;
}


// ************************************************************************* //
BTW, can anyone explain why "flange_.*" is used in addLayersControls to add layers in the flange tutorial? Thank you very much!
Code:
// Settings for the layer addition.
addLayersControls
{
    // Are the thickness parameters below relative to the undistorted
    // size of the refined cell outside layer (true) or absolute sizes (false).
    relativeSizes true;

    // Per final patch (so not geometry!) the layer information
    layers
    {
        "flange_.*"
        {
            nSurfaceLayers 1;
        }
    }
Attached Images
File Type: png triSurface.png (3.7 KB, 12 views)
File Type: png extendedFeatureEdgeMesh.png (22.0 KB, 14 views)
File Type: png flange_addLayerControls.png (10.5 KB, 19 views)
jiaodanuma is offline   Reply With Quote

Old   July 26, 2016, 10:22
Default
  #2
New Member
 
Join Date: Apr 2016
Posts: 13
Rep Power: 10
open is on a distinguished road
I guess you might have worked this out by now but for future reference...

system/controDict
writeCompression [off OR uncompressed]

Note that one can change this setting (along with system/controlDict: writeFormat [acsii OR binary]) then use the foam utility foamFormatConvert to switch data formats. It affects all reconstructed data including 0 folder and mesh.
open is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 09:46
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 16:12.