GfsSourceViscosity

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:32, 20 October 2012
Popinet (Talk | contribs)
(Added comment on dynamic viscosity)
← Previous diff
Revision as of 11:33, 20 October 2012
Popinet (Talk | contribs)
(Reverted edits by Popinet (Talk); changed back to last version by Traumflug)
Next diff →
Line 1: Line 1:
-GfsSourceViscosity solves the diffusion equation for the velocity (a vector quantity obviously) while [[GfsSourceDiffusion]] solves the diffusion equation for a scalar quantity. In the case of a spatially uniform viscosity the two are strictly equivalent since — in the case of an incompressible fluid — the vector diffusion equation for the velocity can be split in independent scalar diffusion equations for each of the Cartesian components of the velocities.+[[GfsSourceDiffusion]] solves the diffusion equation for a scalar quantity, while '''GfsSourceViscosity''' solves the diffusion equation for the velocity (a vector quantity obviously). In the case of a spatially uniform viscosity the two are strictly equivalent since—in the case of an incompressible fluid—the vector diffusion equation for the velocity can be split in independent scalar diffusion equations for each of the Cartesian components of the velocities.
To sum up, using GfsSourceViscosity is safe in all cases, regardless of whether the viscosity is uniform. To sum up, using GfsSourceViscosity is safe in all cases, regardless of whether the viscosity is uniform.
- 
-In the case where the density (specified using [[GfsPhysicalParams]]) is not unity, the diffusion coefficient is the [[w:Viscosity#Viscosity_coefficients|dynamic viscosity coefficient]]. 
- 
-The syntax in parameter files is: 
- 
- [ [[GfsSourceVelocity]] ] [ [[GfsDiffusion]] ] 
- 
-where <code>[[GfsDiffusion]]</code> defines the dynamic viscosity of the fluid. 
- 
-<examples/> 

Revision as of 11:33, 20 October 2012

GfsSourceDiffusion solves the diffusion equation for a scalar quantity, while GfsSourceViscosity solves the diffusion equation for the velocity (a vector quantity obviously). In the case of a spatially uniform viscosity the two are strictly equivalent since—in the case of an incompressible fluid—the vector diffusion equation for the velocity can be split in independent scalar diffusion equations for each of the Cartesian components of the velocities.

To sum up, using GfsSourceViscosity is safe in all cases, regardless of whether the viscosity is uniform.

Personal tools
communication