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

[Other] extrude2DMesh linearNormal not working

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2022, 09:31
Default extrude2DMesh linearNormal not working
  #1
New Member
 
Klaus Rädecke
Join Date: Jun 2009
Location: Rüsselsheim, Germany
Posts: 5
Rep Power: 15
shamantic is on a distinguished road
Hello,


to create a thin solid layer upon a complex curved surface, I created a MeshedSurface

using the wavefront .obj format. With paraview, I checked that the point-normals are as expected and contained in the .obj file.


Now I see two strange effects with extrude2DMesh:
1. The input surface file must be called MeshedSurface.obj and reside in the project directory. The file specified in the extrude2DMeshDict file is ignored. EDIT: this is not a showstopper

2. extrude2DMesh correctly echoes the required thickness to the log, but does not offset any vertices, so all those edges are collapsed immediately. paraFoam counts doubled number of points anyway for one layer added. EDIT: this is a showstopper

Anyone have a clue what might go wrong here? Details see below.


EDIT: Did anyone get the extrudeModel linearNormal to work during the last year? Which file format was used with success?



EDIT: I did "successfully" use the linearDirection mode which did offset the points to create volumes.



OpenFoam.com-v1912 on Ubuntu 18.04.06

cmdline: extrude2DMesh MeshedSurface
system/extrude2DMeshDict (relevant portions only):
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object extrude2DMeshDict;
}
constructFrom surface;
// ....



surface "constant/triSurface/nose_p.obj";
patchType wall;
// Flip surface normals before usage. Valid only for extrude from surface or
// patch.
flipNormals false;

//- Linear extrusion in point-normal direction
extrudeModel linearNormal;


nLayers 1;
expansionRatio 1;


linearNormalCoeffs
{
thickness 0.1;
}
mergeFaces false;

// Merge small edges. Fraction of bounding box.
mergeTol 0;
-------------------------------------------------

The output of extrude2DMesh contains (only relevant portions shown for brevity)



Extruding from MeshedSurface at time 0
Selecting extrudeModel linearNormal
Selected extrudeModel for linearNormal using coeffs
{
thickness 0.1;
}

Flipping face order if necessary.
Calculating neighbours.
Constructing patches.
Adding patch front at index 1 for front faces.

Adding patch back at index 2 for back faces.

Added 76760 points to layer 0
Added 76760 points to layer 1
Merging edge (0 76760) since length 0 << 0.010808
Merging edge (1 76761) since length 0 << 0.010808

.... nearly all edges merged ....
Uncollapsed edges = 76630 / 533326
Uncollapsed edges = 0 / 533326
Number of points : 153520
Not visited : 0
Not collapsed : 153520
Collapsed : 0

Collapsing 0 cells

Writing extruded mesh to time = 0.001

End

Last edited by shamantic; May 20, 2022 at 16:10. Reason: Still digging into
shamantic is offline   Reply With Quote

Reply

Tags
extrude2dmesh, linearnormal, meshedsurface.obj

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Porous media coefficients and working fluid Dronzer FLUENT 1 June 30, 2020 22:23
findCell() in parallel: not working if location is outside the domain TobiWol OpenFOAM 0 January 10, 2018 14:33
Processor 0 not working vishwesh OpenFOAM Running, Solving & CFD 0 November 17, 2017 03:35
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 02:01
Working directory mgonzalo FLUENT 1 November 11, 2011 10:05


All times are GMT -4. The time now is 22:03.