-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work in progress on mass-based diffusion coordinate for deposition
- Loading branch information
Showing
8 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
particle mass as diffusion coordinate (i.e. no transformation) | ||
""" | ||
|
||
import numpy as np | ||
|
||
|
||
class Mass: | ||
def __init__(self, _): | ||
pass | ||
|
||
@staticmethod | ||
def dx_dt(const, x, dm_dt): | ||
return dm_dt | ||
|
||
@staticmethod | ||
def mass(_, x): | ||
return x | ||
|
||
@staticmethod | ||
def x(_, mass): | ||
return mass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
logarithm of particle mass as diffusion coordinate | ||
(ensures non-negative values) | ||
""" | ||
|
||
import numpy as np | ||
|
||
|
||
class MassLogarithm: | ||
def __init__(self, _): | ||
pass | ||
|
||
@staticmethod | ||
def dx_dt(const, x, dm_dt): | ||
return dm_dt / np.exp(x) | ||
|
||
@staticmethod | ||
def mass(x): | ||
return np.exp(x) | ||
|
||
@staticmethod | ||
def x(mass): | ||
return np.log(mass) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters