Skip to content

How to make meshes for periodic boundary condition by Gmsh #2561

@cjunho

Description

@cjunho

To solve PDEs, I am trying to make meshes on a 2d rectangular domain by using Gmsh.
For the PDEs, I impose periodic boundary condition in x-direction and Neumann condition in y-direction.
I found that "Periodic Line" imposes the periodic boundary condition as the attached geo file.
However, the periodic condition on the geo file does not work as expectation, that is, when I numerically solve the PDEs by running BL1d_periodic2.py, the solution does not continue from the right wall after the solution reaches the left wall. On the other hand, when using the built-in-mesh maker "PeriodicRectangleMesh", the periodic condition works well.

How should I fix the geo file or the Python file in order to have a result like one by using PeriodicRectangleMesh?

Thank you.

Junho

BL1d_periodic2.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions