Skip to content

Ice in kinematic 2D#492

Open
AgnieszkaMakulska wants to merge 15 commits into
igfuw:masterfrom
AgnieszkaMakulska:kinematic_ice
Open

Ice in kinematic 2D#492
AgnieszkaMakulska wants to merge 15 commits into
igfuw:masterfrom
AgnieszkaMakulska:kinematic_ice

Conversation

@AgnieszkaMakulska

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the kinematic_2D Lagrangian (lgrngn) model configuration to support ice-related toggles and diagnostics/output, and introduces a new aerosol composition parameter (soluble_fraction).

Changes:

  • Added out_ice parsing and diagnostics output for ice moments in the kinematic_2D lgrngn model.
  • Introduced CLI options to control ice-related processes (ice_switch, ice_nucl, time_dep_ice_nucl) and added a new depo toggle to lgrngn opts_t.
  • Added soluble_fraction to the kinematic_2D setup/options and attempted to use it in aerosol initialization.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
models/kinematic_2D/src/opts_lgrngn.hpp Adds CLI options and output parsing for ice, plus updates aerosol init keying logic.
models/kinematic_2D/src/opts_common.hpp Adds soluble_fraction option and stores it in the case setup.
models/kinematic_2D/src/kin_cloud_2d_lgrngn.hpp Adds ice diagnostics output (ice_mix_ratio, ice_a, ice_c) and stores ice-related constants.
models/kinematic_2D/cases/icmw8_case1.hpp Extends setup_t with soluble_fraction.
include/libcloudph++/lgrngn/opts.hpp Adds depo toggle to the lgrngn runtime options struct.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 307 to 310
rt_params.cloudph_opts_init.dry_distros.emplace(
libcloudphxx::lgrngn::kappa_rd_insol_t<config::real_t>{setup.kappa, config::real_t(0.)}, // kappa, rd_insol
libcloudphxx::lgrngn::kappa_soluble_fraction_t<config::real_t>{setup.kappa, setup.soluble_fraction},
std::make_shared<config::log_dry_radii<config::real_t>> (setup)
);
Comment thread models/kinematic_2D/src/opts_lgrngn.hpp Outdated
Comment thread include/libcloudph++/lgrngn/opts.hpp
Comment thread models/kinematic_2D/src/opts_lgrngn.hpp Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants