How to use tetrahedrons ?
Hi and sorry if this question seems simple..
In fact, I'm working with the python interface of Fenics and I'm defining my mesh using the command :
mesh = Box(-NlimMesh, -NlimMesh/10., -NlimMesh/10., NlimMesh, NlimMesh/10., NlimMesh/10., 10*Nmesh, Nmesh, Nmesh)
V = VectorFunctionS
then, following the examples founded in the tutorials, I define my vectors as follows:
du = TrialFunction(V)
v = TestFunction(V)
u = Function(V)
That produces an mesh which is composed of prisms. My question is then :
How can I modify the elements I used for my FE formulation ?
In the example for the hyperelasticity equation, I found that it is possible using ufl & c++
# Function spaces
element = VectorElement(
# Trial and test functions
du = TrialFunction(
v = TestFunction(
I would really like to be able to do the same directly in my python file.
I thank you in advance for helping me,
Nicolas
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Garth Wells
- Solved:
- Last query:
- Last reply: