-
Notifications
You must be signed in to change notification settings - Fork 10
Home
Úa
A finite-element ice-flow model.
Flow approximations: Shallow Ice Sheet Flow Approximation (SSHEET or SIA) Shallow Ice Stream Flow Approximation (SSTREAM or SSA) Hybrid combinations of SIA and SSA (already implemented, but still being developed further...)
The code is developed by Hilmar Gudmundsson (ghg@bas.ac.uk).
% Running Úa
- Add the folder with the Úa m-files, and its subfolders, to your matlab path. This can be done using the 'Home/Set' Path menu item, or from the command prompt doing something like:
addpath(genpath('MyUaSourceFileFolder'))
- Define the Matlab environmental variable 'UaHomeDirectory'. This can for example be done as follows:
setenv('UaHomeDirectory','MyUaSourceFileFolder')
- If using the mesh generator `gmsh' (almost always the case) then also define the Matlab environmental variable 'GmshHomeDirectory'. The gmsh program for windows is in a subfolder of Ua/Source So if you are running windows
setenv('GmshHomeDirectory','MyDrive/Ua/Source/gmsh-2.12.0-Windows')
will do. Alternativily you might want to install your own copy of gmsh. If running on a Unix system, then most likely gmsh can be called without the need to set the Matlab environmental variable 'GmshHomeDirectory'.
Now you can run Úa from within Matlab by writing:
Ua [Ret]
Summary: Before running Ua do for example:
setenv('UaHomeDirectory','C:\cygwin64\home\Hilmar\ghg\Ua\Source')
setenv('GmshHomeDirectory','C:\cygwin64\home\Hilmar\ghg\Ua\Source\gmsh-2.12.0-Windows')
UaHomeDirectory=getenv('UaHomeDirectory'); addpath(genpath(UaHomeDirectory))
Then run Ua from the Source directory to see if everyting is OK.
% Getting help
You can get help on the use of Úa in the same way as you would get help on
various in-build matlab commands by writing help Ua' in the matlab command line, or doc Ua'. Most m-files that are part of the Ua program have some
inbuild help text, for example try `doc Ua2D_DefaultParameters'.