[Nek5000-users] 2D circular ring mesh converting by mshconvert.py

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Wed Nov 9 06:45:32 CST 2016


Dear Bolun,

Yes, you should specify the different curved zones separately. There is a
bit of documentation at the end of the file "mshconvert.py". Here is what
is said about the curves input:

"
curves = Dictionary of curve information. Keys are curve zones and value is
either
    {'type': 'C', 'radius': radius, 'circle_center': (x, y), 'depth': depth}
for a circle or
    {'type': 'm'}
for midpoint with nek5000 or
    {'type': 'spline'}
for a curved side with semtex. Here a .geom file containing the spline
information will be created.

The circle may provide the radius or the center of the circle through
'circle_center'. The curvature may also be used in the internal elements
inside the surface through specifying the depth. depth=4 means that the
curvature is used throughout the first four elements inside that surface.
This is necessary to get good quality meshes in, e.g., a cylinder. The
radius for an internal face is always computed as the distance to the
circle_center. Not for FEniCS.
"

I hope that helps.
Best,
Nicolas Offermans

On Wed, Nov 9, 2016 at 3:16 AM, <nek5000-users at lists.mcs.anl.gov> wrote:

> Hi, neks
>
> I tried to convert a 2D circular ring mesh generated by gambit to .rea
> file using the code mshconvert.py, but failed. I converted the example mesh
> file sirkel4.msh following the step in README, then I have a question that
> what command I should input when my mesh has more than one curved boundary
> just like a ring mesh. For sirkel4.msh the command “7:{……}” means that the
> zone 7 is curved, if I have two curved zones, for example, zone 3 and 4,
> should I input “3:{……..},4:{……..}” in one command line?
>
> Thank you in advance.
>
> Regards,
>
> Xu
>
>
>
> ----------------------------------------------------------------
>
> Bolun Xu
>
> University of Science and Technology of Chnia
>
> Hefei, Anhui, China
>
>
>
>
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20161109/63f8f5a1/attachment.html>


More information about the Nek5000-users mailing list