Skip to content

BUG: GenerateMesh and SurfaceMeshRefinement don't work #406

Description

@JesperWB

Describe the bug
When surface meshrefinement is used using the pythonclient rfem calculation stops at 75% and does not finish.

To Reproduce
Steps to reproduce the behavior:
Build an rfem 6.07.0013 or 6.08.0006 model with version 1.20.4 of the rfem python package. Generate the mesh with code (1) below, or generate a meshrefinement with code (2) below:

 # IMPORT PACKAGES
 from RFEM.TypesForSurfaces.surfaceMeshRefinements import SurfaceMeshRefinement
 from RFEM.Calculate.meshSettings import GetMeshSettings, GenerateMesh, MeshSettings

# GENERATE MESH
# ========================================
# Step 1: Retrieve the current mesh settings
# current_mesh_settings = GetMeshSettings(model)

# Step 2: Update the general_target_length_of_fe value
# current_mesh_settings["general_target_length_of_fe"] = 0.25

# Step 3: Apply the updated settings
# MeshSettings.set_mesh_settings(current_mesh_settings, model)

# GenerateMesh(model)
# ========================================
# DEFINE TYPES FOR SURFACES
# ========================================
SurfaceMeshRefinement(
    params={
        "no": 1,
        "user_defined_name_enabled": False,
        # "name": "L_FE : 0.250 m (Surfaces : 1)",
        "surfaces": "1",
        "target_length": target_mesh_size,
        "is_generated": False,
    }
)
# ========================================

Expected behavior
a mesh should be generated.

Observed behavior
Method (1): Model is build, but crashes when calculated when generating the mesh in rfem 6.08.
Method (2): Model is build, but when calculated rfem stop on 75% when generating the mesh in rfem 6.07 and 6.08.

Desktop:

  • Version of WIN10 OS: [WIN 10.0.19045]
  • Version of RFEM6.08.0006
  • Version of tool [1.20.4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugExisting feature isn't working properly

    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