question on linearize an upwinding term

More
3 years 7 months ago #3682 by Guosheng Fu
Hello,

I have a simple question on linearizing the following upwinding DG flux term:
Code:
IfPos(u*n, 1, -1)*u*n* u *v *dx(element_boundary=True)
The AssembleLinearization can automatically compute the Jacobian, but I would like to explicitly write it out for a comparison.

I am having a trouble dealing with the absolute value in the linearization procedure as my hand calculation skills currently does not support linearization for absolute values (I can only work with smooth functions)... and a few google search didn't help me either.
Thanks for your help!

Best,
Guosheng
Time to create page: 0.091 seconds