Hi,
I just found the advection-diffusion example on github and in the UFL-File
u = TrialFunction(scalar)
v = TestFunction(scalar)
u0 = Coefficient(scalar)
b = Coefficient(vector)
f = Coefficient(scalar)
c = 0.005
k = 0.05
a = u*v*dx + 0.5*k*(dot(b, grad(u)*v)*dx + c*dot(grad(u), grad(v))*dx)
L = u0*v*dx - 0.5*k*(dot(b, grad(u0)*v)*dx + c*dot( grad(u0), grad(v))*dx) \
+ k*f*v*dx
I don't understand what c and k should represent and why they are set as variable, but the other factors (0.5 in the equation of a and L) are not.
Is there any difference?
I was wondering if they were something like the diffusion coefficient and if the diffusion coefficient could be set to an manually by Defining it with D = Coefficient(scalar)
?
I hope you have some Ideas, what I want to realize and how this could be done.
Thanks