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

Reaction forces #140

Open
srosenbu opened this issue Sep 8, 2023 · 1 comment
Open

Reaction forces #140

srosenbu opened this issue Sep 8, 2023 · 1 comment
Labels
good first issue Good for newcomers sensor Related to the sensors

Comments

@srosenbu
Copy link
Member

srosenbu commented Sep 8, 2023

I am not exactly sure what happens in the calculation of the reaction forces, but the current approach seems to be unnecessarily complex.

computed_force_x = -df.fem.assemble_scalar(df.fem.form(ufl.action(problem.residual, v_reac)))

Imo, it should be enough to sum up the nodal forces. This can be done on residual.vector.array directly

@srosenbu srosenbu added good first issue Good for newcomers sensor Related to the sensors labels Sep 8, 2023
@joergfunger
Copy link
Member

not sure if the residual vector actually contains the constrained dofs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers sensor Related to the sensors
Projects
None yet
Development

No branches or pull requests

2 participants