Last change
on this file since 16137 was 16137, checked in by Mathieu Morlighem, 11 years ago |
merged trunk-jpl and trunk for revision 16135
|
File size:
808 bytes
|
Line | |
---|
1 | import numpy
|
---|
2 | from model import *
|
---|
3 | from triangle import *
|
---|
4 | from setmask import *
|
---|
5 | from parameterize import *
|
---|
6 | from setflowequation import *
|
---|
7 | from EnumDefinitions import *
|
---|
8 | from solve import *
|
---|
9 | from MatlabFuncs import *
|
---|
10 |
|
---|
11 | md=triangle(model(),'../Exp/Square.exp',150000)
|
---|
12 | md=setmask(md,'all','')
|
---|
13 | md=parameterize(md,'../Par/SquareShelfConstrained.py')
|
---|
14 | md.extrude(5,1.)
|
---|
15 | #Add boundary conditions on thickness on the border
|
---|
16 | pos=numpy.nonzero(md.mesh.vertexonboundary)
|
---|
17 | md.balancethickness.spcthickness[pos]=md.geometry.thickness[pos]
|
---|
18 | md=setflowequation(md,'SSA','all')
|
---|
19 | md.cluster=generic('name',oshostname(),'np',3)
|
---|
20 | md=solve(md,BalancethicknessSolutionEnum())
|
---|
21 |
|
---|
22 | #Fields and tolerances to track changes
|
---|
23 | field_names =['Thickness']
|
---|
24 | field_tolerances=[1e-13]
|
---|
25 | field_values=[\
|
---|
26 | md.results.BalancethicknessSolution.Thickness,\
|
---|
27 | ]
|
---|
Note:
See
TracBrowser
for help on using the repository browser.