Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
MultiPhaseblock in input files and include multiphase parameters in parameter dumps for reproducibility.Description
MPModelNone/MPModelShanChen/MPModelPhaseFieldconstants inConstParamsand new multiphase fields toFlowCondTypeinFlowConditionwith defaults, and implemented parsing of an optionalMultiPhasekeyword using a newfound_keyword_optionalutility.FluidDomain: allocatephi,phi_new, andchemPotfor phase‑field, initializephiand block densities (or mixed density for Shan‑Chen), update densities in collision, and added per-block routinesapply_shan_chen_force,advance_phase_field,apply_phase_field_force,pseudopotential, and helpers for neighbours/gradients/laplacian.write_flow_now writes aPhase*****_b***file when multiphase is enabled (density and phase indicator for phase‑field), adjusted output indexing/filename handling, and extendedwrite_continue_/read_continue_to save/load phase data when present.write_parameter_check_fileand a new optional keyword search routinefound_keyword_optionalinUtil.f90.Solidbody.f90(lineY/lineZcomputation) and added bounds checking forflow%inWhichBlockinmain.f90to avoid invalid probe access.Testing
gfortran -O3after the changes and no compile errors were reported.DatFlowoutputs, and small multiphase smoke cases for bothMPModelShanChenandMPModelPhaseFieldproducedPhase..._b...files with density and phase fields as expected.Codex Task