Skip to content

Wrong number of displacement variables #28043

Answered by GiudGiud
RWTHLHK asked this question in Q&A Meshing
Discussion options

You must be logged in to vote

chatgpt has some ideas about this lolol

Copy paste:

If Gmsh is generating only a surface mesh instead of a 3D mesh, you likely need to specify or enable volume meshing. Here are some steps and tips to ensure you get a 3D mesh:

  1. Define the Volume:
    Ensure that you have defined the volume (3D region) in your geometry. In Gmsh, volumes are defined using the Volume keyword.

    // Example: Define a simple box volume
    Point(1) = {0, 0, 0, 1};
    Point(2) = {1, 0, 0, 1};
    Point(3) = {1, 1, 0, 1};
    Point(4) = {0, 1, 0, 1};
    Point(5) = {0, 0, 1, 1};
    Point(6) = {1, 0, 1, 1};
    Point(7) = {1, 1, 1, 1};
    Point(8) = {0, 1, 1, 1};
    
    Line(1) = {1, 2};
    Line(2) = {2, 3};
    Line(3) = {3, 4};
    Line(4) = {4, 1};
    Line(5) = {1, 5

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@RWTHLHK
Comment options

@GiudGiud
Comment options

@RWTHLHK
Comment options

@GiudGiud
Comment options

Answer selected by RWTHLHK
@RWTHLHK
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants