I’m currently trying to solve the system of coupled PDEs in the following picture :
I’ve tried to follow the approach presented in the following document page 73 : https://fenicsproject.org/pub/tutorial/pdf/fenics-tutorial-vol1.pdf
You can see in the picture how I’ve implemented my variational problem.
Nevertheless, when I run the script I get a RuntimeError message :
RuntimeError Traceback (most recent call last)
in
6
7 u=Function(V)
----> 8 solve(a == b,u,bc)
9
10 def vitesse(x,y,z):
/opt/conda/lib/python3.7/site-packages/dolfin/fem/solving.py in solve(*args, **kwargs)
218 # tolerance)
219 elif isinstance(args[0], ufl.classes.Equation):
–> 220 _solve_varproblem(*args, **kwargs)
221
222 # Default case, just call the wrapped C++ solve function
/opt/conda/lib/python3.7/site-packages/dolfin/fem/solving.py in _solve_varproblem(*args, **kwargs)
245 solver = LinearVariationalSolver(problem)
246 solver.parameters.update(solver_parameters)
–> 247 solver.solve()
248
249 # Solve nonlinear variational problem
RuntimeError:
Could someone please help me?
In order to help you, here is the part when I define the variational problem :
g_x,g_y=Constant(0.0),Constant(-Cd*(rho_air/mu)w**2)
u_x,u_y = TrialFunction(V)
v_x,v_y = TestFunction(V)
a = inner(grad(u_x), grad(v_x))dx + inner(grad(u_y), grad(v_y))dx + sin(lat)(L/D)*2(u_xv_y-u_yv_x)dx
b = (v_xg_x+v_y*g_y)*ds
u=Function(V)
solve(a == b,u,bc)