[cig-commits] commit: Update doc and images

Mercurial hg at geodynamics.org
Tue Jul 31 16:40:43 PDT 2012


changeset:   467:e8036d940378
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Tue Jul 31 16:40:16 2012 -0700
files:       doc/gale.lyx doc/images/Sphere_v.png doc/images/cookbook_bottom.png doc/images/cookbook_deformed_bottom.png doc/images/cookbook_multi_material.png doc/images/cookbook_multi_viscosity.png doc/images/cookbook_non_newtonian.png doc/images/cookbook_normal_stress.png doc/images/cookbook_thermal.png doc/images/cookbook_thermal_file.png doc/images/cookbook_thermal_only.png doc/images/cookbook_viscous_extension.png doc/images/cookbook_viscous_file.png doc/images/cookbook_viscous_inflow.png doc/images/cookbook_viscous_sinusoid.png doc/images/cookbook_viscous_split.png doc/images/cookbook_yielding.png doc/images/cookbook_yielding_viscosity.png doc/images/cookbook_yielding_yielding.png
description:
Update doc and images


diff -r 202230d20128 -r e8036d940378 doc/gale.lyx
--- a/doc/gale.lyx	Tue Jul 31 16:40:00 2012 -0700
+++ b/doc/gale.lyx	Tue Jul 31 16:40:16 2012 -0700
@@ -124,7 +124,7 @@ Walter Landry and Luke Hodkinson
 \begin_inset Newline newline
 \end_inset
 
-Version 2.0.0
+Version 2.0.1
 \end_layout
 
 \begin_layout Date
@@ -882,22 +882,22 @@ Gale can use a few different types of fi
 \begin_inset Formula $Q_{2}$
 \end_inset
 
-) elements for the velocity, discontinuous linear (
+) elements for the velocity and temperature, and discontinuous linear (
 \begin_inset Formula $P_{-1}$
 \end_inset
 
-) elements for the pressure, and continuous linear (
-\begin_inset Formula $Q_{1}$
-\end_inset
-
-) elements for the temperature.
+) elements for the pressure.
  These elements are mathematically well behaved and have been used in other
  computational codes with success.
 \end_layout
 
 \begin_layout Standard
 If, for some reason, you wish use a different element type, Gale also supports
- piecewise constant (
+ linear (
+\begin_inset Formula $Q_{1}$
+\end_inset
+
+) and piecewise constant (
 \begin_inset Formula $P_{0}$
 \end_inset
 
@@ -941,6 +941,45 @@ Previous versions of Gale did not suppor
 \begin_layout Subsubsection
 \begin_inset CommandInset label
 LatexCommand label
+name "sub:Thermal-Advection"
+
+\end_inset
+
+Thermal Advection and Diffusion
+\end_layout
+
+\begin_layout Standard
+Gale uses the Stream Upwind Petrov-Galerkin (SUPG) method to solve the energy
+ equation (eq.
+ 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "eq:energy"
+
+\end_inset
+
+).
+ This should normally work without any modification.
+ However, if the elements in your model gets significantly distorted, you
+ may see anomalously high temperature variations.
+ To fix this, you can modify 
+\family typewriter
+supgFactor
+\family default
+, as detailed in Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Temperature-components"
+
+\end_inset
+
+.
+ 
+\end_layout
+
+\begin_layout Subsubsection
+\begin_inset CommandInset label
+LatexCommand label
 name "sub:Scaling"
 
 \end_inset
@@ -1045,17 +1084,16 @@ maxViscosity
 maxViscosity
 \family default
 .
- Note that the scaling for 
+ For example, 
 \family typewriter
 A
 \family default
- is non-trivial.
- It has units of 
-\begin_inset Formula $s^{-1/n}Pa^{-1}$
+ has units of 
+\begin_inset Formula $s^{-1}Pa^{-n}$
 \end_inset
 
 , so in this case 
-\begin_inset Formula $A_{new}=A_{old}\left(10^{25}\right)^{1/n}$
+\begin_inset Formula $A_{new}=A_{old}10^{25}$
 \end_inset
 
 .
@@ -1949,7 +1987,7 @@ If you downloaded binaries for your plat
 \end_layout
 
 \begin_layout LyX-Code
-./Gale-2_0_0 input/cookbook/yielding.json
+./Gale-2_0_1 input/cookbook/yielding.json
 \end_layout
 
 \begin_layout Standard
@@ -1961,43 +1999,43 @@ TimeStep = 0, Time = 0
 \end_layout
 
 \begin_layout LyX-Code
-TimeStep = 1, Time = 0.0215028
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 2, Time = 0.0427742
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 3, Time = 0.063824
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 4, Time = 0.084661
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 5, Time = 0.105287
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 6, Time = 0.125703
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 7, Time = 0.145912
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 8, Time = 0.165915
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 9, Time = 0.18572
-\end_layout
-
-\begin_layout LyX-Code
-TimeStep = 10, Time = 0.205274
+TimeStep = 1, Time = 0.021503
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 2, Time = 0.0427746
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 3, Time = 0.0638247
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 4, Time = 0.0846619
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 5, Time = 0.105288
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 6, Time = 0.125705
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 7, Time = 0.145914
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 8, Time = 0.165918
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 9, Time = 0.185726
+\end_layout
+
+\begin_layout LyX-Code
+TimeStep = 10, Time = 0.205284
 \end_layout
 
 \begin_layout Standard
@@ -2016,14 +2054,27 @@ If you do not specify an input file, you
 \begin_layout LyX-Code
 
 \size small
-Error: File input/cookbook/foo.json doesn't exist, not readable, or not valid.
+Error on line 1 at column 1
+\end_layout
+
+\begin_layout LyX-Code
+
+\size small
+	not a value
+\end_layout
+
+\begin_layout LyX-Code
+
+\size small
+Error: Could not read input file input/cookbook/foo.json.
+ Exiting.
 \end_layout
 
 \begin_layout Standard
 Due to quirks in some implementations of MPI, you may have to specify the
  complete path to the input file (e.g., 
 \family typewriter
-./Gale-2_0_0 /home/juser/gale/input/cookbook/yielding.
+./Gale-2_0_1 /home/juser/gale/input/cookbook/yielding.
 \family default
 json).
 \end_layout
@@ -5333,13 +5384,20 @@ input/cookbook/sinusoid.json
 input/cookbook/sinusoid.json
 \family default
 .
- Figure 
+ Figures 
 \begin_inset CommandInset ref
 LatexCommand ref
 reference "fig:Strain-initial-deformed"
 
 \end_inset
 
+ and 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "fig:Strain-final-deformed"
+
+\end_inset
+
  shows the strain rate invariant and velocity (see Section 
 \begin_inset CommandInset ref
 LatexCommand ref
@@ -5347,7 +5405,54 @@ reference "sub:Visualization-with-Visit"
 
 \end_inset
 
-).
+) at the beginning and after the tenth timestep.
+ Note that the material has flattened out and the magnitude of the velocity
+ and strainrate has reduced considerably.
+\end_layout
+
+\begin_layout Standard
+\noindent
+\align center
+\begin_inset Float figure
+placement H
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\noindent
+\align center
+\begin_inset Graphics
+	filename images/cookbook_viscous_sinusoid_initial.png
+	lyxscale 75
+	width 100col%
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+\begin_inset CommandInset label
+LatexCommand label
+name "fig:Strain-initial-deformed"
+
+\end_inset
+
+Strain rate invariant and velocity with initially deformed upper boundary
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -5378,7 +5483,7 @@ status open
 \begin_layout Plain Layout
 \begin_inset CommandInset label
 LatexCommand label
-name "fig:Strain-initial-deformed"
+name "fig:Strain-final-deformed"
 
 \end_inset
 
@@ -8703,6 +8808,53 @@ True
 \begin_layout Standard
 Similarly, you can independently set the left, top, bottom, front, and back
  boundaries.
+\end_layout
+
+\begin_layout Standard
+Setting staticRight will make the right boundary immobile.
+ You can make the whole boundary move with a fixed velocity, by setting
+ 
+\family typewriter
+right_equation
+\family default
+.
+ So setting
+\end_layout
+
+\begin_layout LyX-Code
+\begin_inset Quotes sld
+\end_inset
+
+right_equation
+\begin_inset Quotes srd
+\end_inset
+
+: 
+\begin_inset Quotes sld
+\end_inset
+
+10 - 0.01 * t
+\begin_inset Quotes srd
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+will make the right side move from 10 inwards with a velocity 0.1.
+ Similarly, you can make the left side move by setting 
+\family typewriter
+left_equation
+\family default
+.
+ If you are scaling units as in Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sub:Scaling"
+
+\end_inset
+
+, be sure to scale the velocity here.
 \end_layout
 
 \begin_layout Standard
@@ -9916,6 +10068,30 @@ reference "sec:Materials"
 \end_inset
 
 ).
+\end_layout
+
+\begin_layout Standard
+This should normally work without any tweaking.
+ However, if your model has strongly distorted elements, then you may see
+ anomalously high temperature variations.
+ Fo fix that, modify the prefactor for SUPG (see Section 
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "sec:Thermal-Convection"
+
+\end_inset
+
+) by setting the variable 
+\family typewriter
+supgFactor
+\family default
+ to something smaller.
+ A good first guess is to try 0.5.
+ Note that if you set 
+\family typewriter
+supgFactor
+\family default
+ too small, then you may see other numerical artifacts.
 \end_layout
 
 \begin_layout Section
@@ -11168,6 +11344,43 @@ ty (
 \end_inset
 
 ), and a thermal diffusivity.
+ To make a pressure or temperature dependent density, set 
+\family typewriter
+densityEquation
+\family default
+ instead of 
+\family typewriter
+density
+\family default
+.
+ For example, specifying
+\end_layout
+
+\begin_layout LyX-Code
+”densityEquation”: ”p<1 ? 2 : 1”
+\end_layout
+
+\begin_layout Standard
+will set the density to 2 when the pressure (
+\family typewriter
+p
+\family default
+) is less than 1, and 1 otherwise.
+ For temperature dependence, use the variable 
+\family typewriter
+T
+\family default
+.
+ Similarly, to set a pressure or temperature dependent thermal expansity,
+ specify 
+\family typewriter
+alphaEquation
+\family default
+ instead of 
+\family typewriter
+alpha
+\family default
+.
 \end_layout
 
 \begin_layout Standard
@@ -14340,6 +14553,12 @@ Gale has two different models for modeli
 \end_layout
 
 \begin_layout Subsubsection
+\begin_inset CommandInset label
+LatexCommand label
+name "sub:Diffusion"
+
+\end_inset
+
 Diffusion
 \end_layout
 
@@ -14361,6 +14580,59 @@ SurfaceProcess
 SurfaceProcess
 \family default
 .
+ For example to apply diffusion with a coefficient of 1, add
+\end_layout
+
+\begin_layout LyX-Code
+"plugins": [
+\end_layout
+
+\begin_layout LyX-Code
+  {
+\end_layout
+
+\begin_layout LyX-Code
+    "Type": "Underworld_SurfaceProcess"
+\end_layout
+
+\begin_layout LyX-Code
+  }
+\end_layout
+
+\begin_layout LyX-Code
+],
+\end_layout
+
+\begin_layout LyX-Code
+"SurfaceProcess":
+\end_layout
+
+\begin_layout LyX-Code
+  {
+\end_layout
+
+\begin_layout LyX-Code
+    "mesh": "v-mesh",
+\end_layout
+
+\begin_layout LyX-Code
+    "VelocityField": "VelocityField",
+\end_layout
+
+\begin_layout LyX-Code
+    "diffusionCoefficient": "0.1"
+\end_layout
+
+\begin_layout LyX-Code
+  },
+\end_layout
+
+\begin_layout Standard
+just before the 
+\family typewriter
+EulerDeform
+\family default
+ struct.
 \end_layout
 
 \begin_layout Subsubsection
@@ -16786,11 +17058,11 @@ Maximum of all values
 \end_layout
 
 \begin_layout Standard
-In addition, you can use the function 
-\family typewriter
-if(a,b,c)
-\family default
-.
+In addition, you can use the syntax 
+\family typewriter
+a ? b : c
+\family default
+ as a conditonal.
  If the first element 
 \family typewriter
 a
@@ -16815,7 +17087,7 @@ a
 
 \begin_layout Standard
 \begin_inset Tabular
-<lyxtabular version="3" rows="8" columns="2">
+<lyxtabular version="3" rows="9" columns="2">
 <features tabularvalignment="middle">
 <column alignment="center" valignment="top" width="0">
 <column alignment="center" valignment="top" width="0">
@@ -16944,7 +17216,7 @@ is not equal
 \begin_inset Text
 
 \begin_layout Plain Layout
-||
+or
 \end_layout
 
 \end_inset
@@ -16960,16 +17232,16 @@ logical or
 </cell>
 </row>
 <row>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
-\begin_inset Text
-
-\begin_layout Plain Layout
-&&
-\end_layout
-
-\end_inset
-</cell>
-<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+and
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
@@ -16979,40 +17251,35 @@ logical and
 \end_inset
 </cell>
 </row>
-</lyxtabular>
-
-\end_inset
-
-
-\end_layout
-
-\begin_layout Standard
-You can use the syntax 
-\family typewriter
-?:
-\family default
- as an exact replacement for 
-\family typewriter
-if()
-\family default
-.
- So instead of
-\end_layout
-
-\begin_layout LyX-Code
-if(x<1,a,b)
-\end_layout
-
-\begin_layout Standard
-you can use
-\end_layout
-
-\begin_layout LyX-Code
-(x < 1) ? a : b
-\end_layout
-
-\begin_layout Standard
-Note that both forms will only evaluate the element as needed.
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+xor
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+exclusive or
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Note that this will only evaluate the element as needed.
  So if x<1, 
 \family typewriter
 a
@@ -18124,6 +18391,7 @@ status open
 \align center
 \begin_inset Graphics
 	filename images/Sphere_v.png
+	lyxscale 50
 	height 60pheight%
 
 \end_inset
@@ -18241,6 +18509,7 @@ status open
 \align center
 \begin_inset Graphics
 	filename images/inclusion_setup.png
+	lyxscale 50
 	width 50col%
 
 \end_inset
diff -r 202230d20128 -r e8036d940378 doc/images/Sphere_v.png
Binary file doc/images/Sphere_v.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_bottom.png
Binary file doc/images/cookbook_bottom.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_deformed_bottom.png
Binary file doc/images/cookbook_deformed_bottom.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_multi_material.png
Binary file doc/images/cookbook_multi_material.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_multi_viscosity.png
Binary file doc/images/cookbook_multi_viscosity.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_non_newtonian.png
Binary file doc/images/cookbook_non_newtonian.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_normal_stress.png
Binary file doc/images/cookbook_normal_stress.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_thermal.png
Binary file doc/images/cookbook_thermal.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_thermal_file.png
Binary file doc/images/cookbook_thermal_file.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_thermal_only.png
Binary file doc/images/cookbook_thermal_only.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_viscous_extension.png
Binary file doc/images/cookbook_viscous_extension.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_viscous_file.png
Binary file doc/images/cookbook_viscous_file.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_viscous_inflow.png
Binary file doc/images/cookbook_viscous_inflow.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_viscous_sinusoid.png
Binary file doc/images/cookbook_viscous_sinusoid.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_viscous_split.png
Binary file doc/images/cookbook_viscous_split.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_yielding.png
Binary file doc/images/cookbook_yielding.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_yielding_viscosity.png
Binary file doc/images/cookbook_yielding_viscosity.png has changed
diff -r 202230d20128 -r e8036d940378 doc/images/cookbook_yielding_yielding.png
Binary file doc/images/cookbook_yielding_yielding.png has changed



More information about the CIG-COMMITS mailing list