Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immersion freezing update #205

Open
wants to merge 86 commits into
base: master
Choose a base branch
from
Open

Immersion freezing update #205

wants to merge 86 commits into from

Conversation

tangwhiap
Copy link

Add the immersion freezing simulation codes, freezing test case, and freezing scenario.

Wenhan Tang and others added 30 commits August 29, 2023 15:24
tangwhiap and others added 26 commits December 3, 2024 11:32
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
Co-authored-by: Jeffrey Curtis <[email protected]>
@tangwhiap tangwhiap requested a review from jcurtis2 December 13, 2024 20:07
@@ -25,3 +25,4 @@ scenarios/4_chamber/out
scenarios/5_coag_brownian/out
!scenarios/6_camp
scenarios/6_camp/out
!scenarios/7_freezing
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add ignoring scenarios/7_freezing/out

Comment on lines +134 to +136
end program freezing_process


Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
end program freezing_process
end program freezing_process

Comment on lines +47 to +48
#immersion_freezing_scheme const
#freezing_rate -.01123456789
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason to keep these lines?

do_mosaic no # whether to do MOSAIC (yes/no)
do_nucleation no # whether to do nucleation (yes/no)
do_immersion_freezing yes # whether to do freezing (yes/no)
#immersion_freezing_scheme singular
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove?

@@ -131,6 +143,10 @@ subroutine aero_particle_zero(aero_particle, aero_data)
allocate(aero_particle%component(0))
aero_particle%least_create_time = 0d0
aero_particle%greatest_create_time = 0d0
aero_particle%frozen = .FALSE.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
aero_particle%frozen = .FALSE.
aero_particle%frozen = .false.

Comment on lines +202 to +204
integer :: loop_count = 0


Copy link
Collaborator

Choose a reason for hiding this comment

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

Appears not needed.

Suggested change
integer :: loop_count = 0


!> Simulation for singular scheme, deciding whether to freeze for each
!> particle. Run in each time step.
subroutine immersion_freezing_singular(aero_state, aero_data, env_state_initial, env_state_final)
Copy link
Collaborator

Choose a reason for hiding this comment

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

env_state_initial is passed here and never used (and if this is correct, env_state_final can just become env_state).

Comment on lines +166 to +167
subroutine immersion_freezing_time_dependent(aero_state, aero_data, env_state_initial, &
env_state_final, del_t, immersion_freezing_scheme_type, freezing_rate)
Copy link
Collaborator

Choose a reason for hiding this comment

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

env_state_initial is passed here and never used (and if this is correct, env_state_final can just become env_state).

Comment on lines +288 to +291
subroutine immersion_freezing_time_dependent_naive(aero_state, aero_data, &
env_state_initial, env_state_final, del_t, &
immersion_freezing_scheme_type, &
freezing_rate)
Copy link
Collaborator

Choose a reason for hiding this comment

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

env_state_initial is passed here and never used (and if this is correct, env_state_final can just become env_state).


!> Simulation for time-dependent scheme (e.g., ABIFM, constant rate),
!> deciding whether to freeze for each particle. Run in each time step.
!> This subroutine applys the naive algorithm for reference.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
!> This subroutine applys the naive algorithm for reference.
!> This subroutine applies the naive algorithm that checks each particle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants