integration of scalar field; derivative with respect to scalar
Asked by
R. Tavakoli
Dear All,
Consider "u" as a scalar field approximated by a picewise polynomial interpolation within FEniCS python environment.
1) Assume that functional J is defined as
J = \int u dx and v = dJ/du (derivative means gateaux derivative here), then how to compute v?
2) If we assume field v is defined on nodal values similar to u, then considering quadrature based interpolation,
J = sum_i (c[i]*u[i]), where "i" iterates on mesh vertexes and (.)[i] is the field value at vertex i-th.
Considering this simplification,
v[i] = c[i] (i.e., v = c)
then what is the simplest way to compute vector "c" to use out of FEniCS?
Thanks
RT
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kent-Andre Mardal
- Solved:
- Last query:
- Last reply:
To post a message you must log in.