Ignore:
Timestamp:
11/24/22 00:49:18 (2 years ago)
Author:
jdquinn
Message:

CHG: Python translation of debris class; standardized tolerances for tests; varied cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test355.py

    r27396 r27417  
    1010from generic import generic
    1111
    12 #create model:
     12# Create model
    1313md = triangle(model(), '../Exp/Square.exp', 50000.)
    1414md.mesh.x = md.mesh.x / 100
    1515md.mesh.y = md.mesh.y / 100
    16 #miscellaneous
    17 md = setmask(md, '', '')   #everywhere grounded
     16md.miscellaneous.name = 'testChannels'
     17
     18# Miscellaneous
     19md = setmask(md, '', '') # Everywhere grounded
    1820md = setflowequation(md, 'SSA', 'all')
    19 md.miscellaneous.name = 'testChannels'
    20 md.stressbalance.maxiter = 2  #Make sure it runs quickly...
     21md.stressbalance.maxiter = 2 # Make sure it runs quickly...
    2122
    22 #Some constants
     23# Some constants
    2324md.constants.g = 9.8
    2425md.materials.rho_ice = 910
    2526
    26 #Geometry
     27# Geometry
    2728md.geometry.surface = -0.02 * md.mesh.x + 320
    2829md.geometry.bed = np.zeros((md.mesh.numberofvertices))
     
    3031md.geometry.thickness = md.geometry.surface - md.geometry.bed
    3132
    32 #Define initial conditions
     33# Define initial conditions
    3334md.initialization.vx = 1.0e-6 * md.constants.yts * np.ones((md.mesh.numberofvertices))
    3435md.initialization.vy = np.zeros((md.mesh.numberofvertices))
     
    3738md.initialization.hydraulic_potential = md.materials.rho_ice * md.constants.g * md.geometry.thickness
    3839
    39 #Materials
     40#cMaterials
    4041md.materials.rheology_B = (5e-25)**(-1./3.) * np.ones((md.mesh.numberofvertices))
    4142md.materials.rheology_n = 3. * np.ones((md.mesh.numberofelements))
    4243
    43 #Friction
     44#cFriction
    4445md.friction.coefficient = np.zeros((md.mesh.numberofvertices))
    4546md.friction.p = np.ones((md.mesh.numberofelements))
     
    4748#md.friction.coupling = 0
    4849
    49 #Boundary conditions:
     50#Bcoundary conditions:
    5051md = SetIceSheetBC(md)
    5152
     
    7475
    7576md.cluster = generic('np', 2)
    76 md = solve(md, 'Transient')   #or 'tr'
     77md = solve(md, 'Transient') # Or 'tr'
    7778
    78 #Fields and tolerances to track changes
     79# Fields and tolerances to track changes
    7980field_names = ['HydrologySheetThickness1', 'HydraulicPotential1', 'ChannelArea1',
    8081               'HydrologySheetThickness2', 'HydraulicPotential2', 'ChannelArea2',
Note: See TracChangeset for help on using the changeset viewer.