From c421d3669414be86c94fd6e53dce957294946cec Mon Sep 17 00:00:00 2001 From: Joseph Zhang Date: Mon, 28 Oct 2024 14:34:27 -0400 Subject: [PATCH] More updates on particle behavior option --- src/Utility/Particle_Tracking/particle.bp | 1 + src/Utility/Particle_Tracking/ptrack3.f90 | 3 ++- src/Utility/Particle_Tracking/ptrack4.f90 | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Utility/Particle_Tracking/particle.bp b/src/Utility/Particle_Tracking/particle.bp index 30cb21b43..575faf559 100644 --- a/src/Utility/Particle_Tracking/particle.bp +++ b/src/Utility/Particle_Tracking/particle.bp @@ -4,6 +4,7 @@ Input for ptrack* 0 ibiofoul (0: no biofouling; 1: with biofouling) 1 ibf 0 istiff +0 ibnd_beh (behavior near bnd or wet/dry; 0: reflect off; 1: slide) 1 -122.6 37.38 ics slam0 sfea0 0.01 140. 120. 30 720 40 !h0,rnday,dtm,nspool,ihfskip,ndeltp 2 !# of particles diff --git a/src/Utility/Particle_Tracking/ptrack3.f90 b/src/Utility/Particle_Tracking/ptrack3.f90 index 6c51dfb1c..2002e1e49 100755 --- a/src/Utility/Particle_Tracking/ptrack3.f90 +++ b/src/Utility/Particle_Tracking/ptrack3.f90 @@ -24,7 +24,7 @@ ! Assume the quads are not split in the nc outputs. ! ! Behavior when particles hit horizontal bnd or dry interface: -! reflect off like LTRAN +! reflect off like LTRAN or slide ! ! Inputs: ! a) hgrid.ll (if ics=2 in particle.bp) or hgrid.gr3 (if ics=1 in @@ -41,6 +41,7 @@ ! (3) mod_part: model #. 0-passive; 1: oil spill (Dr. Jung) ! (4) ibf: forward (=1) or backward (=-1) tracking. ! (5) istiff: stiff (fixed distance frm f.s.; 1) or not (0). +! (6) ibnd_beh: reflect off (0) or slide (1) ! (6) ics,slam0,sfea0: coordinate system and center for CPP projection ! (same as in param.in). If ics=2, inputs/outputs are in ! lon/lat; diff --git a/src/Utility/Particle_Tracking/ptrack4.f90 b/src/Utility/Particle_Tracking/ptrack4.f90 index 255886327..365e9c64e 100755 --- a/src/Utility/Particle_Tracking/ptrack4.f90 +++ b/src/Utility/Particle_Tracking/ptrack4.f90 @@ -24,7 +24,7 @@ ! Assume the quads are not split in the nc outputs. ! ! Behavior when particles hit horizontal bnd or dry interface: -! reflect off like LTRAN +! reflect off like LTRAN or slide ! ! Inputs: ! a) hgrid.ll (if ics=2 in particle.bp) or hgrid.gr3 (if ics=1 in @@ -41,6 +41,7 @@ ! (3) mod_part: model #. 0-passive; 1: oil spill (Dr. Jung) ! (4) ibf: forward (=1) or backward (=-1) tracking. ! (5) istiff: stiff (fixed distance frm f.s.; 1) or not (0). +! (6) ibnd_beh: reflect off (0) or slide (1) ! (6) ics,slam0,sfea0: coordinate system and center for CPP projection ! (same as in param.in). If ics=2, inputs/outputs are in ! lon/lat;