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.
Files changed (67) hide show
  1. analytic_initialization/__init__.py +0 -0
  2. analytic_initialization/hydrostatic_solid_body.py +39 -0
  3. analytic_initialization/moist_baroclinic_wave.py +722 -0
  4. dynamical_cores/__init__.py +0 -0
  5. dynamical_cores/cam_se/__init__.py +0 -0
  6. dynamical_cores/cam_se/explicit_terms.py +471 -0
  7. dynamical_cores/cam_se/se_state.py +67 -0
  8. dynamical_cores/cam_se/thermodynamics.py +322 -0
  9. dynamical_cores/finite_volume_grid.py +0 -0
  10. dynamical_cores/homme/__init__.py +0 -0
  11. dynamical_cores/homme/explicit_terms.py +947 -0
  12. dynamical_cores/homme/homme_state.py +86 -0
  13. dynamical_cores/homme/thermodynamics.py +212 -0
  14. dynamical_cores/hyperviscosity.py +626 -0
  15. dynamical_cores/initialization.py +366 -0
  16. dynamical_cores/mass_coordinate.py +156 -0
  17. dynamical_cores/model_config.py +75 -0
  18. dynamical_cores/model_info.py +61 -0
  19. dynamical_cores/model_state.py +1021 -0
  20. dynamical_cores/operators_3d.py +132 -0
  21. dynamical_cores/physics_config.py +132 -0
  22. dynamical_cores/physics_dynamics_coupling.py +7 -0
  23. dynamical_cores/run_dycore.py +295 -0
  24. dynamical_cores/time_step.py +13 -0
  25. dynamical_cores/time_stepping.py +644 -0
  26. dynamical_cores/tracer_advection/__init__.py +0 -0
  27. dynamical_cores/tracer_advection/eulerian_spectral.py +168 -0
  28. dynamical_cores/utils_3d.py +297 -0
  29. dynamical_cores/vertical_remap.py +297 -0
  30. mesh_generation/__init__.py +0 -0
  31. mesh_generation/bilinear_utils.py +87 -0
  32. mesh_generation/cubed_sphere.py +278 -0
  33. mesh_generation/element_local_metric.py +300 -0
  34. mesh_generation/equiangular_metric.py +392 -0
  35. mesh_generation/mesh.py +476 -0
  36. mesh_generation/mesh_definitions.py +85 -0
  37. mesh_generation/mesh_io.py +112 -0
  38. mesh_generation/periodic_plane.py +256 -0
  39. mesh_generation/spectral.py +103 -0
  40. mesh_generation/spherical_coord_utils.py +105 -0
  41. mpi/__init__.py +0 -0
  42. mpi/global_assembly.py +354 -0
  43. mpi/global_communication.py +305 -0
  44. mpi/processor_decomposition.py +337 -0
  45. operations_2d/__init__.py +0 -0
  46. operations_2d/horizontal_grid.py +667 -0
  47. operations_2d/limiters.py +161 -0
  48. operations_2d/local_assembly.py +641 -0
  49. operations_2d/operators.py +480 -0
  50. operations_2d/tensor_hyperviscosity.py +155 -0
  51. pyses-0.0.2.dist-info/METADATA +100 -0
  52. pyses-0.0.2.dist-info/RECORD +67 -0
  53. pyses-0.0.2.dist-info/WHEEL +5 -0
  54. pyses-0.0.2.dist-info/licenses/LICENSE +504 -0
  55. pyses-0.0.2.dist-info/top_level.txt +7 -0
  56. shallow_water_models/__init__.py +0 -0
  57. shallow_water_models/constants.py +37 -0
  58. shallow_water_models/explicit_terms.py +60 -0
  59. shallow_water_models/galewsky_init.py +158 -0
  60. shallow_water_models/hyperviscosity.py +224 -0
  61. shallow_water_models/model_state.py +175 -0
  62. shallow_water_models/run_shallow_water.py +98 -0
  63. shallow_water_models/time_stepping.py +247 -0
  64. shallow_water_models/tracers.py +126 -0
  65. shallow_water_models/williamson_init.py +112 -0
  66. tracer_transport/__init__.py +0 -0
  67. 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