How to Set Velocity to Zero in Solid Regions Based on Phase Field (ϕ=1) in MOOSE #28950
-
Hello, I'm working on a simulation where part of the domain represents a growing solid region, indicated by ( Ideally, I’d like a conditional setup or loop that checks
something like:
Alternatively, is there a way to dynamically apply boundary conditions or pointwise constraints within the domain during runtime to make the velocity zero wherever Also, I am aware of the penalty method or changing the viscosity field method. Thank you for your guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hello "make _u = 0" with kernels could be done with a penalty approach. What type of variable is u going to be? First order lagrange?
Boundary conditions should be on a surface not a volume. So if you used this, I would set the value at the interface, then make the value constant on the solid domain by only having a NullKernel or a TimeDerivative kernel on the velocity variable in that domain. Pointwise constraints could be applied using a penalty approach with a volumetric source pushing velocity to 0 Changing the viscosity seems like a good idea too. @lindsayad also created some fluid-solid simulations here that can be an inspiration |
Beta Was this translation helpful? Give feedback.
-
@mahdipasaie Did you make sure to use AD in that dependence of mu on phi? |
Beta Was this translation helpful? Give feedback.
-
Yes, also, Finding a platform to couple FVM and FEM code was quite challenging for me, especially since the source codes were often very complex to understand. In contrast, the FEM kernels in MOOSE are straightforward and much easier to work with. I hope that with the ongoing development of FVM kernels in MOOSE, they will become just as accessible and intuitive as the FEM kernels, making the process easier for others in the future |
Beta Was this translation helpful? Give feedback.
Thanks for the details on the project! I see a ton of work has been put into this problem and it is always very encouraging to see you can reproduce prior results.
This PR will enable direct coupling, but that's likely not the issue
#29106
This does not seem right. Is phi properly bounded? and is the viscosity allowed to become negative over the valid range of phi?