Giter Club home page Giter Club logo

Comments (5)

smpark7 avatar smpark7 commented on August 11, 2024

I may have misunderstood the purpose of prec_scale.

I simply wanted to apply a scaling factor in the Variables definition in PrecursorAction. This is easily applied by typing "scaling = 1e6" for example when initializing PrecursorAction.

It appears as though prec_scale does not do anything.

from moltres.

gridley avatar gridley commented on August 11, 2024

from moltres.

smpark7 avatar smpark7 commented on August 11, 2024

Thanks for your help @gridley
I think "scaling = 1e6" affects the numerical technique that you mentioned (and convergence?), and I've already implemented it.

It appears that "prec_scale" is an input parameter for PrecursorSource and PrecursorDecay kernels.

Anyway, I've (probably) solved my convergence/precision issue by applying "scaling".

I'll close this issue soon, but maybe wait for Alex to give confirmation that we're right, so that we don't confuse future users.

from moltres.

lindsayad avatar lindsayad commented on August 11, 2024

It indeed doesn't appear that prec_scale is applied anywhere in the action. It looks like it could be used and applied when creating the PrecursorSource and PrecursorDecay kernels. The doc string in the action definitely appears to be wrong...it should read "The amount by which to scale precursors". Anyway I think the thought behind those parameters was potentially for unit scaling, whose goal is generally multiple in a multi-physics setting:

  1. Get all initial residuals for all variables in the same neighborhood as each other so that when the non-linear solve is finished you're guaranteed to have convergence in each variable
  2. Produce an optimally conditioned jacobian matrix. The closer "important" Jacobian entries are to each other for different variables, then the better conditioned your matrix will be and the better an iterative solver will perform

The scaling parameter in the Variables block is a bit of a dull tool that can definitely help achieve both goals. Since the documentation of the manual scaling parameters I introduced seems a bit lacking and since at first glance I don't see it doing much different than the Variables block scaling parameter, they can probably be deprecated/removed.

I'm going to be taking a back seat, and letting you guys do the Moltres development. However, if you ever want my opinion/thought on something you can definitely tag me.

from moltres.

smpark7 avatar smpark7 commented on August 11, 2024

Thank you for the clarification. I'll close this issue now.

from moltres.

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.