<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://source.geography.bristol.ac.uk/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Steve-price</id>
	<title>SourceWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://source.geography.bristol.ac.uk/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Steve-price"/>
	<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/wiki/Special:Contributions/Steve-price"/>
	<updated>2026-04-06T04:42:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.8</generator>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3509</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3509"/>
		<updated>2007-08-01T15:42:18Z</updated>

		<summary type="html">&lt;p&gt;Steve-price: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively (located in subversion repository &amp;quot;glam-matlab&amp;quot;).  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear stress||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m|| xn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,'PATH');&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Steve-price</name></author>
	</entry>
	<entry>
		<id>https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3508</id>
		<title>Glam output</title>
		<link rel="alternate" type="text/html" href="https://source.geography.bristol.ac.uk/mediawiki/index.php?title=Glam_output&amp;diff=3508"/>
		<updated>2007-08-01T15:40:47Z</updated>

		<summary type="html">&lt;p&gt;Steve-price: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:glam]]&lt;br /&gt;
&lt;br /&gt;
= Output from GLAM =&lt;br /&gt;
&lt;br /&gt;
== Selecting output from GLAM ==&lt;br /&gt;
&lt;br /&gt;
GLAM outputs 2d and 3d variables in files &amp;lt;tt&amp;gt;glam.2df&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam.3df&amp;lt;/tt&amp;gt;, respectively.  These files are binary and can be read with MATLAB scripts (see below).  The interval between output is selected using the variable &amp;lt;tt&amp;gt;nout&amp;lt;/tt&amp;gt; within &amp;lt;tt&amp;gt;glam.nml&amp;lt;/tt&amp;gt;.  The three elements of this array contain intervals for point, 2d and 3d output (the first is no longer used).  The unit is years.  Note that GLAM will also output at the first (&amp;lt;tt&amp;gt;tstr&amp;lt;/tt&amp;gt;) and final (&amp;lt;tt&amp;gt;tstr+trun&amp;lt;/tt&amp;gt;) time step irrespective of these settings; the actual time integration loop runs from &amp;lt;tt&amp;gt;tstr+tinc&amp;lt;/tt&amp;gt; until &amp;lt;tt&amp;gt;trun&amp;lt;/tt&amp;gt; is exceeded.  The variable &amp;lt;tt&amp;gt;nstrv&amp;lt;/tt&amp;gt;  can be used to control when output starts in a time-dependent simulation; output will only be written after &amp;lt;tt&amp;gt;nstr&amp;lt;/tt&amp;gt; (in years).  This is useful if we are only interested in the equilibrium.&lt;br /&gt;
&lt;br /&gt;
The variables that are output can be selected by editing &amp;lt;tt&amp;gt;glam.out&amp;lt;/tt&amp;gt;.  This file contains two arrays (&amp;lt;tt&amp;gt;which2d&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;which3d&amp;lt;/tt&amp;gt;).   Output for a particular variable is selected if the appropriate entry in the array is 1 (otherwise set to zero).  The variables currently available for output are shown in Tables 1 and 2.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ '''Table 1.  3d variables available from GLAM.'''&lt;br /&gt;
| || Variable || Grid || Units || MATLAB name&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Horizontal velocity in x || Staggered || m yr&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;|| u&lt;br /&gt;
|-&lt;br /&gt;
| 2||Horizontal velocity in y||Staggered||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||v&lt;br /&gt;
|-&lt;br /&gt;
| 3||Vertical velocity||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||w &lt;br /&gt;
|-&lt;br /&gt;
| 4||Vertical velocity of grid||Normal||m yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||wg&lt;br /&gt;
|-&lt;br /&gt;
| 5||Glen’s A||Normal||Pa&amp;lt;sup&amp;gt;-3&amp;lt;/sup&amp;gt; yr&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;||a&lt;br /&gt;
|-&lt;br /&gt;
| 6||Temperature||Normal||deg. C||t&lt;br /&gt;
|-&lt;br /&gt;
| 7||Effective viscosity||Normal||Pa s||evs&lt;br /&gt;
|-&lt;br /&gt;
| 8||Effective stress||Normal||Pa||tau&lt;br /&gt;
|-&lt;br /&gt;
| 9||Vertical shear stress in x||Normal||Pa||txz&lt;br /&gt;
|-&lt;br /&gt;
| 10||Vertical shear stress in y||Normal||Pa||tyz&lt;br /&gt;
|-&lt;br /&gt;
| 11||Horizontal shear stress||Normal||Pa||txy&lt;br /&gt;
|-&lt;br /&gt;
| 12||Longitudinal stress deviator in x||Normal||Pa||txx&lt;br /&gt;
|-&lt;br /&gt;
| 13||Longitudinal stress deviator in y||Normal||Pa||tyy&lt;br /&gt;
|-&lt;br /&gt;
| 14||Gravitational driving stress in x||Normal||Pa||gdx&lt;br /&gt;
|-&lt;br /&gt;
| 15||Gravitational driving stress in y||Normal||Pa||gdy&lt;br /&gt;
|-&lt;br /&gt;
| ||Horizontal distances||Both||m|| xn yn xs ys&lt;br /&gt;
|-&lt;br /&gt;
| ||Vertical distances||Both||m||zn zs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Table 2. needs to be done'''&lt;br /&gt;
&lt;br /&gt;
== Viewing output from GLAM in MATLAB ==&lt;br /&gt;
&lt;br /&gt;
The GLAM output files can be loaded using MATLAB scripts &amp;lt;tt&amp;gt;glam2d.m&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;glam3d.m&amp;lt;/tt&amp;gt;.  Both are called using &amp;lt;tt&amp;gt;[a] = glam3d(N,'PATH');&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt; is the time step of interest and &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt; is the relative location of the output file, e.g. ‘.’ for same directory).  These scripts create a MATLAB structure that can be referenced as follows.  For 3d output, use &amp;lt;tt&amp;gt;a.NAME(I,J,K)&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;NAME&amp;lt;/tt&amp;gt; is the variable’s MATLAB name (see Tables 1 and 2), &amp;lt;tt&amp;gt;I&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;J&amp;lt;/tt&amp;gt; are horizontal indices and &amp;lt;tt&amp;gt;K&amp;lt;/tt&amp;gt; the vertical index.  Note that it is often necessary to compress the 3d array to a 2d array for plotting purposes using &amp;lt;tt&amp;gt;squeeze()&amp;lt;/tt&amp;gt;.  The command &amp;lt;tt&amp;gt;imagesc(squeeze(a.txz(:,:,end)))&amp;lt;/tt&amp;gt; will produce an image of basal traction.&lt;/div&gt;</summary>
		<author><name>Steve-price</name></author>
	</entry>
</feed>