Problem defining ufl form
Hello,
I don't know why the following ufl file fails when calculating F. The error:
Expecting 'forms' to be a list of Form instances.
Traceback (most recent call last):
File "/home/
sys.
File "/home/
ufd = load_ufl_
File "/home/
"Expecting 'forms' to be a list of Form instances.")
File "/home/
if not condition: error(*message)
File "/home/
raise self._exception
ufl.log.
incompressible_
#######
# Function spaces
porder = 2
V = VectorElement("CG", tetrahedron, porder) # space for displacements
P = FiniteElement("CG", tetrahedron, porder-1) # space for pressure
element = V*P
# Trial and test functions
v, q = TestFunctions(
dup = TrialFunction(
# Functions
up = Coefficient(
u, p = split(up) # Function in each subspace to write the functional
# Kinematics
I = Identity(
F = variable(I + grad(u)) # Deformation gradient <============== FAILS HERE !!!!!!!
---
P.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Martin Sandve Alnæs
- Solved:
- Last query:
- Last reply: