-
Notifications
You must be signed in to change notification settings - Fork 110
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
dendritic-growth simulation has succeed using prisms-pf #43
Comments
Hi Xin-Bo, Is there a particular paper you got your solidification model from? Having a little more familiarity with the model will help me parse the code. Thanks! |
Hi Xin-Bo, First of all, just to make sure that I'm clear on the issue, you need the old solution to calculate the time derivative of the order parameter for the heat equation, right? You should be able to calculate that from your residual for the order parameter -- to update the order parameter you use it's time derivative. If you do absolutely need access to the old value of the order parameter, you could create it as a third variable (so you'd have temp, eta, and eta_old as variables). Then you just set eta_old = eta in residualsRHS and it'll have the value of eta from the previous time step. Let me know if this makes sense and you think either way will work. Best, |
Thanks, Steve, I think both ways are feasible. |
In v2.0 a dendritic solidification app was added, very similar to the one here. |
Dear Steve:
A new example of using prisms-pf to simulate dendritic-growth has been conducted. The results are as follows:
2D
3D
Thank you so much!
My code is here:
code
However, currently, I cannot make a pull request, since I made some changes in the basic framework of prisms-pf.
For example, the governing equations of dendritic growth need two sets of SolutionSet: the current one solutionSet and the last one oldSolutionSet. So I change the solutionSet in the functions of computeRHS, getRHS and residualRHS to a vector containing solutionSet and oldSolutionSet.
I hope the main framework of prisms-pf can add a feature of receiving several sets of solutions in the RHS construction (or it has already such a feature?), so I can change my code and make a pull request to the main branch.
Xin-Bo Qi
The text was updated successfully, but these errors were encountered: