Giter VIP home page Giter VIP logo

Comments (5)

stvdwtt avatar stvdwtt commented on July 24, 2024

Hi Xin-Bo,
Great! I'll start looking through your changes to figure out how to generalize the existing framework to include this functionality.

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!

from phasefield.

qixinbo avatar qixinbo commented on July 24, 2024

Hi Steve,
The code is based on the model by Wheeler et al.
See: here
The anisotropy part refers to Karma's model, in order to handle the 3D case. And it can be deduced to the style in Wheeler's model in 2D case.

Xin-Bo

from phasefield.

stvdwtt avatar stvdwtt commented on July 24, 2024

Hi Xin-Bo,
After some thought, I think there are two ways to access the time derivative without a major change to the framework.

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.

image

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,
Steve

from phasefield.

qixinbo avatar qixinbo commented on July 24, 2024

Thanks, Steve, I think both ways are feasible.
In my pinion, the first way is not quite elegant, so I prefer the second one.
However, I don't know how to pass eta_old into residualRHS without modifying the framework. Just as the way in my code, I changed the parameter "std::vector<modelVariable>" to a Vector style "std::vector<std::vector<modelVariable>>" in order to accept eta and eta_old.

from phasefield.

stvdwtt avatar stvdwtt commented on July 24, 2024

In v2.0 a dendritic solidification app was added, very similar to the one here.

from phasefield.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.