### Output viscosity

Posted:

**26 Mar 2015, 12:58**Hi,

Is there an easy way of outputting the viscosity (e.g. in a vtu file) when using Glens flow law? I tried using "Save Materials" saving the "Viscosity" (sif below) but to no surprise it only outputs the constant going into Glens flow law (called 'Viscosity' ).

Thanks,

Josefin

Is there an easy way of outputting the viscosity (e.g. in a vtu file) when using Glens flow law? I tried using "Save Materials" saving the "Viscosity" (sif below) but to no surprise it only outputs the constant going into Glens flow law (called 'Viscosity' ).

Thanks,

Josefin

Code: Select all

```
Material 1
Density = Real $rhoi
Viscosity Model = String "power law"
Viscosity = Real $eta
Viscosity Exponent = Real $1.0/n
Critical Shear Rate = Real 1.0e-10
Cauchy = Logical False
End
....
Solver 6
Procedure = "SaveData" "SaveMaterials"
Parameter 1 = String "Viscosity"
End
...
Solver 8
Exec Solver = After TimeStep
Exec Interval = 1
Equation = "result output"
Procedure = "ResultOutputSolve" "ResultOutputSolver"
Output File Name = file "$name".vtu"
Output Format = String vtu
End
```