Changeset 17876
- Timestamp:
- 04/29/14 10:36:31 (11 years ago)
- Location:
- issm/trunk-jpl/src/m/boundaryconditions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/boundaryconditions/SetIceSheetBC.py
r17480 r17876 15 15 #node on Dirichlet 16 16 pos=numpy.nonzero(md.mesh.vertexonboundary) 17 md.stressbalance.spcvx=float('nan')*numpy.ones( (md.mesh.numberofvertices,1))18 md.stressbalance.spcvy=float('nan')*numpy.ones( (md.mesh.numberofvertices,1))19 md.stressbalance.spcvz=float('nan')*numpy.ones( (md.mesh.numberofvertices,1))17 md.stressbalance.spcvx=float('nan')*numpy.ones(md.mesh.numberofvertices)) 18 md.stressbalance.spcvy=float('nan')*numpy.ones(md.mesh.numberofvertices)) 19 md.stressbalance.spcvz=float('nan')*numpy.ones(md.mesh.numberofvertices)) 20 20 md.stressbalance.spcvx[pos]=0 21 21 md.stressbalance.spcvy[pos]=0 -
issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.py
r17686 r17876 33 33 # pos=find(md.mesh.vertexonboundary & ~nodeonicefront); 34 34 pos=numpy.nonzero(numpy.logical_and(md.mesh.vertexonboundary,numpy.logical_not(nodeonicefront)))[0] 35 md.stressbalance.spcvx=float('nan')*numpy.ones( (md.mesh.numberofvertices,1))36 md.stressbalance.spcvy=float('nan')*numpy.ones( (md.mesh.numberofvertices,1))37 md.stressbalance.spcvz=float('nan')*numpy.ones( (md.mesh.numberofvertices,1))35 md.stressbalance.spcvx=float('nan')*numpy.ones(md.mesh.numberofvertices) 36 md.stressbalance.spcvy=float('nan')*numpy.ones(md.mesh.numberofvertices) 37 md.stressbalance.spcvz=float('nan')*numpy.ones(md.mesh.numberofvertices) 38 38 md.stressbalance.referential=float('nan')*numpy.ones((md.mesh.numberofvertices,6)) 39 39 md.stressbalance.loadingforce=0*numpy.ones((md.mesh.numberofvertices,3)) … … 59 59 else: 60 60 pos=numpy.nonzero(md.mesh.vertexonboundary)[0] 61 md.stressbalance.spcvx[pos [:]]=062 md.stressbalance.spcvy[pos [:]]=063 md.stressbalance.spcvz[pos [:]]=061 md.stressbalance.spcvx[pos]=0 62 md.stressbalance.spcvy[pos]=0 63 md.stressbalance.spcvz[pos]=0 64 64 65 65 #Dirichlet Values -
issm/trunk-jpl/src/m/boundaryconditions/SetMarineIceSheetBC.py
r17870 r17876 42 42 print "SetMarineIceSheetBC warning: ice front all around the glacier, no dirichlet found. Dirichlet must be added manually." 43 43 44 md.stressbalance.spcvx=float('nan')*numpy.ones( (md.mesh.numberofvertices,))45 md.stressbalance.spcvy=float('nan')*numpy.ones( (md.mesh.numberofvertices,))46 md.stressbalance.spcvz=float('nan')*numpy.ones( (md.mesh.numberofvertices,))44 md.stressbalance.spcvx=float('nan')*numpy.ones(md.mesh.numberofvertices) 45 md.stressbalance.spcvy=float('nan')*numpy.ones(md.mesh.numberofvertices) 46 md.stressbalance.spcvz=float('nan')*numpy.ones(md.mesh.numberofvertices) 47 47 md.stressbalance.referential=float('nan')*numpy.ones((md.mesh.numberofvertices,6)) 48 48 md.stressbalance.loadingforce=0*numpy.ones((md.mesh.numberofvertices,3)) … … 68 68 else: 69 69 pos=numpy.nonzero(md.mesh.vertexonboundary)[0] 70 md.stressbalance.spcvx[pos [:]]=071 md.stressbalance.spcvy[pos [:]]=072 md.stressbalance.spcvz[pos [:]]=070 md.stressbalance.spcvx[pos]=0 71 md.stressbalance.spcvy[pos]=0 72 md.stressbalance.spcvz[pos]=0 73 73 74 74 #Dirichlet Values
Note:
See TracChangeset
for help on using the changeset viewer.