You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifdimensionless_diameter>5E9: # "The boundary layer around the sphere becomes fully turbulent, causing a reduction in drag and an increase in settling velocity" - [1]
183
183
dimensionless_velocity=265000.# Set a maximum dimensionless settling velocity
184
184
elifdimensionless_diameter<0.05: # "At values of D_* less than 0.05, (9) deviates signficantly ... from Stokes' law and (8) should be used." - [1]
185
-
dimensionless_velocity= (dimensionless_diameter**2.) /5832# Using Eq. (8) in [1]
185
+
dimensionless_velocity= (dimensionless_diameter**2.) /5832.# Using Eq. (8) in [1]
particle_ddepth=fieldset.z_start-particle.depth# noqa # Stick particle to surface
590
590
elifpotential_depth>bathymetry_local:
591
591
particle_ddepth=bathymetry_local-particle.depth# noqa # Stick particle at bottom of ocean
592
-
elifparticle.depth>100andpotential_depth> (bathymetry_local*0.99): # for deeper particles; since bathymetry can be quite rough (and is interpolated linearly) look at the 99% value instead
592
+
elifparticle.depth>100.andpotential_depth> (bathymetry_local*0.99): # for deeper particles; since bathymetry can be quite rough (and is interpolated linearly) look at the 99% value instead
593
593
particle_ddepth=bathymetry_local*0.99-particle.depth# noqa # Stick particle at the 99% point
594
594
595
-
elifpotential_depth>3900: # If particle >3.9km deep, stick it there
596
-
particle_ddepth=3900-particle.depth# noqa
595
+
elifpotential_depth>3900.: # If particle >3.9km deep, stick it there
0 commit comments