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

Replace gravity with body force #43

Open
keiyamamo opened this issue Mar 15, 2023 · 0 comments
Open

Replace gravity with body force #43

keiyamamo opened this issue Mar 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@keiyamamo
Copy link
Collaborator

gravity should be replaced with body force. Current implementation only allows us to apply force in y-direction

if gravity is not None and mesh.geometry().dim() == 2:
F_solid_linear -= inner(Constant((0, -gravity * rho_s)), psi)*dx_s[solid_region]
elif gravity is not None and mesh.geometry().dim() == 3:
F_solid_linear -= inner(Constant((0, -gravity * rho_s,0)), psi)*dx_s[solid_region]

Oasis can be used as a reference point for the body force.
https://github.com/mikaem/Oasis/blob/da712b87a8998d0669df0448b1a4bbd9fea284d6/oasis/NSfracStep.py#L158-L159

@keiyamamo keiyamamo added the enhancement New feature or request label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant