pyses 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- analytic_initialization/__init__.py +0 -0
- analytic_initialization/hydrostatic_solid_body.py +39 -0
- analytic_initialization/moist_baroclinic_wave.py +722 -0
- dynamical_cores/__init__.py +0 -0
- dynamical_cores/cam_se/__init__.py +0 -0
- dynamical_cores/cam_se/explicit_terms.py +471 -0
- dynamical_cores/cam_se/se_state.py +67 -0
- dynamical_cores/cam_se/thermodynamics.py +322 -0
- dynamical_cores/finite_volume_grid.py +0 -0
- dynamical_cores/homme/__init__.py +0 -0
- dynamical_cores/homme/explicit_terms.py +947 -0
- dynamical_cores/homme/homme_state.py +86 -0
- dynamical_cores/homme/thermodynamics.py +212 -0
- dynamical_cores/hyperviscosity.py +626 -0
- dynamical_cores/initialization.py +366 -0
- dynamical_cores/mass_coordinate.py +156 -0
- dynamical_cores/model_config.py +75 -0
- dynamical_cores/model_info.py +61 -0
- dynamical_cores/model_state.py +1021 -0
- dynamical_cores/operators_3d.py +132 -0
- dynamical_cores/physics_config.py +132 -0
- dynamical_cores/physics_dynamics_coupling.py +7 -0
- dynamical_cores/run_dycore.py +295 -0
- dynamical_cores/time_step.py +13 -0
- dynamical_cores/time_stepping.py +644 -0
- dynamical_cores/tracer_advection/__init__.py +0 -0
- dynamical_cores/tracer_advection/eulerian_spectral.py +168 -0
- dynamical_cores/utils_3d.py +297 -0
- dynamical_cores/vertical_remap.py +297 -0
- mesh_generation/__init__.py +0 -0
- mesh_generation/bilinear_utils.py +87 -0
- mesh_generation/cubed_sphere.py +278 -0
- mesh_generation/element_local_metric.py +300 -0
- mesh_generation/equiangular_metric.py +392 -0
- mesh_generation/mesh.py +476 -0
- mesh_generation/mesh_definitions.py +85 -0
- mesh_generation/mesh_io.py +112 -0
- mesh_generation/periodic_plane.py +256 -0
- mesh_generation/spectral.py +103 -0
- mesh_generation/spherical_coord_utils.py +105 -0
- mpi/__init__.py +0 -0
- mpi/global_assembly.py +354 -0
- mpi/global_communication.py +305 -0
- mpi/processor_decomposition.py +337 -0
- operations_2d/__init__.py +0 -0
- operations_2d/horizontal_grid.py +667 -0
- operations_2d/limiters.py +161 -0
- operations_2d/local_assembly.py +641 -0
- operations_2d/operators.py +480 -0
- operations_2d/tensor_hyperviscosity.py +155 -0
- pyses-0.0.2.dist-info/METADATA +100 -0
- pyses-0.0.2.dist-info/RECORD +67 -0
- pyses-0.0.2.dist-info/WHEEL +5 -0
- pyses-0.0.2.dist-info/licenses/LICENSE +504 -0
- pyses-0.0.2.dist-info/top_level.txt +7 -0
- shallow_water_models/__init__.py +0 -0
- shallow_water_models/constants.py +37 -0
- shallow_water_models/explicit_terms.py +60 -0
- shallow_water_models/galewsky_init.py +158 -0
- shallow_water_models/hyperviscosity.py +224 -0
- shallow_water_models/model_state.py +175 -0
- shallow_water_models/run_shallow_water.py +98 -0
- shallow_water_models/time_stepping.py +247 -0
- shallow_water_models/tracers.py +126 -0
- shallow_water_models/williamson_init.py +112 -0
- tracer_transport/__init__.py +0 -0
- tracer_transport/eulerian_spectral.py +364 -0
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# from ..config_alt import get_backend as _get_backend
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# def init_test_config(T0=300,
|
|
6
|
+
# lapse=0.005,
|
|
7
|
+
# u_max=0.0,
|
|
8
|
+
# surface_pressure_equator=1e5,
|
|
9
|
+
# Rgas=287.0,
|
|
10
|
+
# model_config=None):
|
|
11
|
+
# if model_config is not None:
|
|
12
|
+
# Rgas = model_config["Rgas"]
|
|
13
|
+
# return {"T0": T0,
|
|
14
|
+
# "lapse": lapse,
|
|
15
|
+
# "u_max": u_max,
|
|
16
|
+
# "surface_pressure_equator": surface_pressure_equator,
|
|
17
|
+
# "Rgas": Rgas}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# def wind(lat,
|
|
21
|
+
# lon,
|
|
22
|
+
# z):
|
|
23
|
+
# # assume shallow atmosphere
|
|
24
|
+
# u = jnp.ones_like(z)
|
|
25
|
+
# v = jnp.zeros_like(z)
|
|
26
|
+
# return jnp.stack((u, v), axis=-1)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# def temperature(lat,
|
|
30
|
+
# lon,
|
|
31
|
+
# z,
|
|
32
|
+
# test_config):
|
|
33
|
+
# return test_config["T0"] - test_config["lapse_rate"] * z
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# def pressure(lat,
|
|
37
|
+
# lon,
|
|
38
|
+
# z):
|
|
39
|
+
# pass
|