Skip to content
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

grad evaluation #3

Open
dutitello opened this issue Jul 3, 2020 · 4 comments
Open

grad evaluation #3

dutitello opened this issue Jul 3, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@dutitello
Copy link
Owner

It will be determined by finite difference method. Forward, central and backward methods at first.

  • All scalar parameters should be evaluated for each declarated parameter:

    If the parameters from the APDL are b, h, l, stress and it's passed to grad just the value of b we could determine db/db (why would we do that?), dh/db, dl/db and dstress/db. If b,h,l are input parameters the derivatives of that will be 0, but all could be calculated and the user will define what it's useful for it (dstress/db).

  • It's possible to determine it for arrays/tables??
@dutitello dutitello added the enhancement New feature or request label Jul 3, 2020
@dutitello
Copy link
Owner Author

It's partially done!

  • No support for arrays parameters in paransys yet;
  • The three methods works;
  • It's possible to choose in relation to what grad is evaluated with (notfor=[] and onlyfor=[])
  • It returns a diactionary in the form grad('y','x') = y'(x) = dy/dx.

@dutitello
Copy link
Owner Author

Arrays and tables are for now out.
grad looks ok!

@dutitello
Copy link
Owner Author

the name of the function is now derivatives!
Since grad(f(X)) are the derivatives of f(X) for all X variables the output should be an dictionary for each output parameter (f) and each dictionary should have it's derivatives.

@dutitello dutitello reopened this Aug 18, 2020
@dutitello
Copy link
Owner Author

I used for central diference method h/2 steps... but it's a good ideia for numerical evaluations... It need to be always h...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant