I am currently implementing the entropy viscosity model (see Guermond et al.,
J. Sci. Comput. 49:35–50 (2011)), which is similar to the artificial viscosity
model introduced in step-31 for the transient advection-diffusion equation for
temperature. However, in this case, the viscosity is for the momentum equation.
Since I have to compute the residual of the momentum equation, I need to
obtain the viscous terms, which in turn involves the computation of the
velocity Laplacians. So far I have done the following:
1. Added the "update_hessians" flag in "UpdateFlags(update_q_points |
update_values | update_gradients | update_hessians | update_JxW_values)"
2. Created an object "laplacian_velocity_cell_old" and resized it according
to the number of quadrature points in the cell.
3. Filled the object using the "get_function_laplacians" function in deal.ii.
However, I am getting "-nan" in some of the cells, and I am not sure that my
procedure is correct. Could you please tell me what am I missing?
Alex -- your approach seems sound. The result is clearly wrong.
There's little else we can suggest without seeing the actual code, but just to
make sure: You're running your program in debug mode?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/5c6d9f00-f5b4-54e1-20a7-a7c6fe6d06b9%40colostate.edu.