source: issm/trunk-jpl/test/NightlyRun/InNeedOfDebugging/test205.py@ 13492

Last change on this file since 13492 was 13492, checked in by mikep, 12 years ago

These are scripts that were in my queue to debug - ran out of time

File size: 1.3 KB
RevLine 
[13492]1"""
2== == == == == == == == == == == == == == == == == == ==
3Auto generated python script for ISSM: test205.m
4Created on 2012-09-27 via translateToPy.py Ver 1.0 by mikep
5== == == == == == == == == == == == == == == == == == ==
6
7Matlab script conversion into python
8translateToPy.py Author: Michael Pellegrin
9translateToPy.py Date: 09/24/12
10== == == == == == == == == == == == == == == == == == ==
11"""
12
13from MatlabFuncs import *
14from model import *
15from EnumDefinitions import *
16from numpy import *
17from triangle import *
18from setmask import *
19from parameterize import *
20from setflowequation import *
21from solve import *
22
23md=triangle(model(),'../Exp/Square.exp',150000)
24md=setmask(md,'all','')
25md=parameterize(md,'../Par/SquareShelf.py')
26md.extrude(3,2)
27md=setflowequation(md,'pattyn','../Exp/SquareHalfRight.exp','fill','macayeal','coupling','penalties')
28md.cluster=generic('name',oshostname(),'np',3)
29md=solve(md,DiagnosticSolutionEnum())
30
31
32# Fields and tolerances to track changes
33
34field_names =['Vx','Vy','Vz','Vel','Pressure']
35field_tolerances=[1e-05,1e-05,1e-05,1e-05,1e-05]
36field_values=[\
37md.results['DiagnosticSolution'][1]['Vx'],\
38md.results['DiagnosticSolution'][1]['Vy'],\
39md.results['DiagnosticSolution'][1]['Vz'],\
40md.results['DiagnosticSolution'][1]['Vel'],\
41md.results['DiagnosticSolution'][1]['Pressure'],\
42]
Note: See TracBrowser for help on using the repository browser.