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

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

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

File size: 1.4 KB
Line 
1"""
2== == == == == == == == == == == == == == == == == == ==
3Auto generated python script for ISSM: test216.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/SquareHole.exp','../Exp/Rifts.exp',50000)
24md=meshprocessrifts(md,'../Exp/Square.exp')
25md=setmask(md,'all','')
26md=parameterize(md,'../Par/SquareShelf.py')
27md=setflowequation(md,'macayeal','all')
28md.cluster=generic('name',oshostname(),'np',3)
29
30
31# rift settings
32
33md.rifts.riftstruct.fill=MelangeEnum()
34md.rifts.riftstruct.fraction=0
35md.diagnostic.rift_penalty_lock=2
36md.diagnostic.rift_penalty_threshold=0
37md.rifts.riftstruct.fractionincrement=.1
38md=solve(md,DiagnosticSolutionEnum())
39
40
41# Fields and tolerances to track changes
42
43field_names =['Vx','Vy','Vel','Pressure']
44field_tolerances=[1e-11,1e-11,1e-11,1e-11]
45field_values=[\
46 md.results['DiagnosticSolution'][1]['Vx'],\
47 md.results['DiagnosticSolution'][1]['Vy'],\
48 md.results['DiagnosticSolution'][1]['Vel'],\
49 md.results['DiagnosticSolution'][1]['Pressure'],\
50 ]
Note: See TracBrowser for help on using the repository browser.