Skip to content

Face of muscle inconsistent #44

@Lukuas31415

Description

@Lukuas31415

In the PR #39 we add Neumann BC to two identical muscles. The direction of those BC point in opposite directions, which also means that the BC are anchored on opposite sides/faces of the muscles. To set up those BC we have the following code:

elasticity_neumann_bc_1 = [{"element": (variables.el_z-1)*variables.el_x*variables.el_y + i*variables.el_y + j, "constantVector": traction_vector, "face": "2+", "isInReferenceConfiguration": True} for i in range(variables.el_x) for j in range(variables.el_y)]

elasticity_neumann_bc_2 = [{"element": j*variables.el_x + i, "constantVector": traction_vector, "face": "2+", "isInReferenceConfiguration": True} for i in range(variables.el_x) for j in range(variables.el_y)]

In particular, we use "face": "2+" in both BC, even though one should be "face": "2+" and the other one "face": "2-", because they act on opposite sides. But if we do that, the muscles behave unexpectedly and move very inconsistently. With both BC using "face": "2+", the muscles behave exactly how we expect them to behave.

Why is that? Are our expectations wrong? Are there two errors in the setup that cancel each other out?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions