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

Evaluation of derivatives functions #29

Open
dansand opened this issue Oct 7, 2021 · 1 comment
Open

Evaluation of derivatives functions #29

dansand opened this issue Oct 7, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@dansand
Copy link

dansand commented Oct 7, 2021

Example:

sr -= (stokes.div_u/mesh.dim)*eye(mesh.dim)  
inv2 = sr[0,0]**2 + sr[0,1]**2 + sr[1,0]**2 + sr[1,1]**2   
inv2 = 1/2.*inv2
strainRate_2ndInvariant = sqrt(inv2)

uw.function.evaluate(strainRate_2ndInvariant, mesh.data)
RuntimeError: Derivatives functions are not handled yet unfortunately.

This is a known limitation as the error message makes clear. But for experimentation it would (really) useful to be able to view things like the strain rate.

@dansand dansand added the enhancement New feature or request label Oct 7, 2021
@lmoresi
Copy link
Member

lmoresi commented May 4, 2023

I second this - we have variable interpolation (rbf only suitable for fields), we have projection (works for anything but maps to nodes), and we have this half-working function_evaluation that ought to be the most general but is hopelessly limited.

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

2 participants