Adapt mesh according to gradient
Asked by
Andrew E Slaughter
I am working on a heat transfer problem and would like to incorporate adaptive meshing based on the temperature gradient. I have been working with the undocumented demo: /demo/undocumen
Using this demo, I figured that to adapt according to the temperature gradient I would simply change the M = u*dx to M = grad(u)*dx, but this causes an error.
What am I doing wrong? Do I need to use the magnitude, if so, how do I do that?
Thanks,
Andrew
P.S. I am using version 1.0.0 and Python
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply:
To post a message you must log in.