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

[blockMesh] Curved or wavy geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 2, 2020, 12:38
Default Curved or wavy geometry
  #1
Member
 
Alex
Join Date: May 2019
Posts: 36
Rep Power: 6
Sedullo is on a distinguished road
Hello everyone,

I need to build a 2d mesh that is basically a vertical rectangle where 3 sides are straight but one (that one on the right) has the shape of a wave (or sine curve).

My idea was to build a lot of blocks with blockmesh, like a puzzle, but I do not know if there is a faster way to generate a sinusoidal shape.

If you have any suggestion or just a comment please help me.

I am quite new in OpenFOAM and I do not know if blockmesh is the right tool for my purpose, in case let me know.
Sedullo is offline   Reply With Quote

Old   January 3, 2020, 04:53
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

When you mean 2D, with blockMesh, remember that you will need to have only 1 element in the 3rd direction....

As for creating sine curve, what you can do is to specify a spline between the two vertices in the edges subsection.

For example, you could have something like this:

Code:
vertices
(
    (0 0 0)
    (1 0 0)
    (1 1 0)
    (0 1 0)
 
    (0 0 1)
    (1 0 1)
    (1 1 1)
    (0 1 1)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (1 1 1)
);

edges
(
    spline 2 1 ((0.8 0.75 0) (1 0.5 0) (1.2 0.25 0))
    spline 6 5 ((0.8 0.75 1) (1 0.5 1) (1.2 0.25 1))
);
Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   January 6, 2020, 18:43
Default
  #3
Member
 
Alex
Join Date: May 2019
Posts: 36
Rep Power: 6
Sedullo is on a distinguished road
Using "spline" I very easily managed to make the sine curve I was looking for, thank you so much!
Sedullo is offline   Reply With Quote

Reply

Tags
curve mesh, wavy channel, wavy fins


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
[ICEM] Holes in complex ICEM geometry alecbann ANSYS Meshing & Geometry 2 April 4, 2019 03:40
[Workbench] Workbench 18.2 SpaceClaim->Mechanical geometry accuracy/tolerance problem sultzan ANSYS Meshing & Geometry 0 December 13, 2018 17:41
[GAMBIT] Meshing problem on a simple curved geometry (Gambit Software) Parham Vatankhah ANSYS Meshing & Geometry 3 February 19, 2018 03:02
Export geometry file from ansys mechanical browns6 Structural Mechanics 0 August 27, 2013 16:19
Problem Importing Geometry ProE to CFX fatb0y CFX 3 January 14, 2012 19:42


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