Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Result of Mixed Axisymmetric Assembly #259

Closed
adtzlr opened this issue Aug 19, 2022 · 0 comments · Fixed by #260
Closed

Wrong Result of Mixed Axisymmetric Assembly #259

adtzlr opened this issue Aug 19, 2022 · 0 comments · Fixed by #260
Labels
bug Something isn't working
Milestone

Comments

@adtzlr
Copy link
Owner

adtzlr commented Aug 19, 2022

due to the introduced field-trimming for plane strain problems. Change

if len(fun) > v.dim:
    fun = fun[tuple([slice(v.dim)] * (len(fun.shape) - 2))]

by

# plane strain
# trim 3d vector-valued functions to the dimension of the field
function_dimension = len(fun.shape) - 2
function_is_vector = function_dimension >= 1
function_is_3d = len(fun) == 3
field_is_2d = v.dim == 2

if function_is_vector and function_is_3d and field_is_2d:
    fun = fun[tuple([slice(2)] * function_dimension)]

within the integration method of a field.

@adtzlr adtzlr added the bug Something isn't working label Aug 19, 2022
@adtzlr adtzlr added this to the 5.0.0 milestone Aug 19, 2022
@adtzlr adtzlr closed this as completed in 9e7b291 Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant