Changeset 559


Ignore:
Timestamp:
Nov 16, 2004, 3:11:13 PM (20 years ago)
Author:
ole
Message:

Oops forgot to add linear friction as a forcing term

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/analytical solutions/Analytical_solution_Sampson_import_mesh.py

    r558 r559  
    2323sys.path.append('..'+sep+'pyvolution')
    2424
    25 from shallow_water import Domain, Dirichlet_boundary
     25from shallow_water import Domain, Dirichlet_boundary, gravity, linear_friction
    2626from math import sqrt, cos, sin, pi, exp
    2727from mesh_factory import strang_mesh
     
    4242
    4343domain.quantities['linear_friction'] = Quantity(domain)
    44 domain.set_quantity('friction', 0.0)
    45 #del domain.quantities['friction']
     44domain.forcing_terms.append(linear_friction)
     45del domain.forcing_terms[1] #Get rid of manning friction
    4646
     47#domain.forcing_terms = []
     48#domain.forcing_terms.append(gravity)
     49#domain.forcing_terms.append(linear_friction)
     50
     51print domain.forcing_terms
    4752
    4853# Provide file name for storing output
Note: See TracChangeset for help on using the changeset viewer.