Giter Site home page Giter Site logo

Comments (4)

keiyamamo avatar keiyamamo commented on August 28, 2024 1
[bc.apply(b, dvp_["n"].vector()) for bc in bcs]

This is to make sure that both b and dvp_["n"].vector() satisfies the boundary condition before we solve the linear system. After solving the linear system, we add the residual to the dvp_["n"]

dvp_["n"].vector().axpy(lmbda, dvp_res.vector())

However, the residual does not necessary satisfy the boundary condition and thus we need to make sure dvp_["n"] satisfies the boundary condition after that by calling

[bc.apply(dvp_["n"].vector()) for bc in bcs]

from turtlefsi.

zhangmuElias avatar zhangmuElias commented on August 28, 2024 1

Ok! That's very clear, thank you.

from turtlefsi.

keiyamamo avatar keiyamamo commented on August 28, 2024

Hi @zhangmuElias

testfunction psi phi gamma mean virtual δ(Δd) δ(Δv) δ(Δp)

This part, I do not agree with you. They are test functions associated with the d,v,p itself, not the increments.

For each Newton iteration, we are solving

$$J_{F}(x_k)s = -F(x_{k})$$ $$x_{k+1} = x_{k} + s$$

where $J_{F}$ is the Jacobian (A in turtleFSI), $x_{k}$ is the solution we are looking for (dvp_["n"] in turtle), and s is a vector that represents each "Newton step" and the one we are actually solving for (dvp_res in turtle).

from turtlefsi.

zhangmuElias avatar zhangmuElias commented on August 28, 2024

Dear @keiyamamo

Thank you! I also don't understand why in the newton solver, we need to apply so many times the boundary conditions.
They must have different kinds of functions?

Best regards
ZHANG

from turtlefsi.

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.