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

[snappyHexMesh] Saving cells in SHM 3D to 2D: Is my strategy silly or smart ;-)?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2024, 09:06
Default Saving cells in SHM 3D to 2D: Is my strategy silly or smart ;-)?
  #1
New Member
 
Join Date: Sep 2022
Posts: 3
Rep Power: 4
gaensebluemchen is on a distinguished road
Hi foamers,
I want to make a 2D mesh with SHM. I can do this with extrudeMesh. the problem is, that first, a 3D mesh is generated which needs a lot of RAM and makes the whole process slow. So, I tried to define the refinement regions just at the patch, that I want to extrude. Eg. width of object = 0.1, but the refinement region would only go from 0 to 0.001. this saves a lot of cells and computation time.

the problem is, that my extrudeMeshDict seems so stop working with this approach.
If anyone could help me with that, I would be very glad.
gaensebluemchen is offline   Reply With Quote

Old   March 18, 2024, 03:36
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12
AtoHM is on a distinguished road
What error are you getting?
I used this very approach recently and it worked like a charm.
AtoHM is offline   Reply With Quote

Old   March 23, 2024, 13:28
Default
  #3
New Member
 
Join Date: Sep 2022
Posts: 3
Rep Power: 4
gaensebluemchen is on a distinguished road
thank you very much for your reply and encouragement. there isn't really an error message but just the extrudeMeshDict isn't working anymore. the mesh doesn't collapse. It has worked as long as the refinementRegions went over the whole depth of the mesh.


Here is the output of extrudeMesh:



/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2306 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _fbf00d6bf2-20230626 OPENFOAM=2306 version=v2306
Arch : "LSB;label=32;scalar=64"
Exec : extrudeMesh
Date : Mar 23 2024
Time : 18:15:18
Host : compile-infinix1
PID : 22396
I/O : uncollated
Case : /afs/physnet.uni-hamburg.de/users/AU/nnordblo/openfoam/Cases/FmM13_22_extruded/FmM13_22
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting extrudeModel plane
Selected extrudeModel for linearNormal using coeffs
{
constructFrom patch;
sourceCase "$FOAM_CASE";
sourcePatches ( back );
exposedPatchName front;
extrudeModel plane;
thickness 0.1;
flipNormals false;
mergeFaces false;
}

Extruding from patch using model plane
Collapsing edges < 0.0001 of bounding box

Extruding patches 1(back) on mesh "/afs/physnet.uni-hamburg.de/users/AU/nnordblo/openfoam/Cases/FmM13_22_extruded/FmM13_22"

Create mesh for time = 0

Adding overall 0 processor patches.
Mesh bounding box : (-0.14 -0.064 -0.099) (0.257 0.14 0.001)
with span : (0.397 0.204 0.1)
Merge distance : 1e-05

Collapsing edges < 1e-05 ...

Uncollapsed edges = 0 / 3616338
Number of points : 1458540
Not visited : 0
Not collapsed : 1458540
Collapsed : 0

Collapsing 0 cells
Writing mesh to "/afs/physnet.uni-hamburg.de/users/AU/nnordblo/openfoam/Cases/FmM13_22_extruded/FmM13_22/constant/region0"

End
gaensebluemchen 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
[snappyHexMesh] Too many cells in undesired part, very less cells in desirable part Ash Kot OpenFOAM Meshing & Mesh Conversion 3 August 7, 2023 15:56
[snappyHexMesh] snappyHexMesh stuck when snap is turned on yukuns OpenFOAM Meshing & Mesh Conversion 3 February 2, 2021 14:05
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
physical boundary error!! kris Siemens 2 August 3, 2005 01:32


All times are GMT -4. The time now is 19:04.