Skip to content

Add: include enumeration class CaloricGasModel to simplify caloric gas model definition#1089

Merged
AlbertoCuadra merged 1 commit intomasterfrom
develop
Oct 19, 2025
Merged

Add: include enumeration class CaloricGasModel to simplify caloric gas model definition#1089
AlbertoCuadra merged 1 commit intomasterfrom
develop

Conversation

@AlbertoCuadra
Copy link
Copy Markdown
Member

@AlbertoCuadra AlbertoCuadra commented Oct 19, 2025

This PR introduces the CaloricGasModel enumeration to define the caloric gas model explicitly (perfect, thermallyPerfect, imperfect). This replaces the previous dual-flag mechanism (FLAG_TCHEM_FROZEN, FLAG_FROZEN) and avoids invalid combinations that could occur silently.

Backward Compatibility

  • Legacy flags are still accepted.
  • CaloricGasModel.fromFlag() maps them safely to enum values.

Example

caloricGasModel = CaloricGasModel.perfect;

if caloricGasModel.isPerfect()
    % configure perfect gas behavior...
end

@AlbertoCuadra AlbertoCuadra added the enhancement New feature or request label Oct 19, 2025
@github-project-automation github-project-automation Bot moved this to In progress in v2.0.0 Oct 19, 2025
@AlbertoCuadra AlbertoCuadra moved this to 2025 Q4 – Oct-Dec in Roadmap Oct 19, 2025
@AlbertoCuadra AlbertoCuadra merged commit 68a8bea into master Oct 19, 2025
1 check passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in v2.0.0 Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: 2025 Q4 – Oct-Dec
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant