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

Improving FEniCSx benchmark #6

Open
jorgensd opened this issue Apr 26, 2023 · 0 comments
Open

Improving FEniCSx benchmark #6

jorgensd opened this issue Apr 26, 2023 · 0 comments

Comments

@jorgensd
Copy link

jorgensd commented Apr 26, 2023

In

# Remark(Tianju): "problem" should be better defined outside of the for loop,
# but I wasn't able to find a way to assign Dirichlet values on the top boundary.

you state that you have problems with modifying the value of the Dirichlet BC, and hence have to redefine the solver at every time step.

Consider:
https://jsdokken.com/dolfinx-tutorial/chapter2/hyperelasticity.html

which uses a dolfinx.fem.Constant to assign a value to the traction (similarly you can do this for a dirichlet BC), which means that the solver can be defined outside of the loop.

If you need help implementing this I can help you

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

No branches or pull requests

1 participant