Skip to content

Commit

Permalink
lagrangian: InjectionModel: New uniformParcelSize control
Browse files Browse the repository at this point in the history
Lagrangian injections now have a 'uniformParcelSize' control, which
specifies what size of the parcels is kept uniform during a given time
step. This control can be set to 'nParticles', 'surfaceArea' or
'volume'. The particle sizes, by contrast, are specified by the size
distribution.

For example, if 'uniformParcelSize nParticles;' is specified then all
parcels introduced at a given time will have the same number of
particles. Every particle in a parcel has the same properties, including
diameter. So, in this configuration, the larger diameter parcels contain
a much larger fraction of the total particulate volume than the smaller
diameter ones. This may be undesirable as the effect of a parcel on the
simulation might be more in proportion with its volume than with the
number of particles it represents. It might be preferable to create a
greater proportion of large diameter parcels so that their more
significant effect is represented by a finer Lagrangian discretisation.
This can be achieved by setting 'uniformParcelSize volume;'. A setting
of 'uniformParcelSize surfaceArea;' might be appropriate if the limiting
effect of a Lagrangian element scales with its surface area; interfacial
evaporation, for example.

Previously, this control was provided by 'parcelBasisType'. However,
this control also effectively specified the size exponent of the
supplied distribution. This interdependence was not documented and was
problematic in that it coupled physical and numerical controls.
'parcelBasisType' has been removed, and the size exponent of the
distribution is now specified independently of the new
'uniformParcelSize' control along with the rest of the distribution
coefficients or data. See the previous commit for details.

It is still possible to specify a fixed number of particles per parcel
using the 'nParticle' control. The presence of this control is used to
determine whether or not the number of particles per parcel is fixed, so
a 'fixed' basis type is no longer needed.

A number of bugs have been fixed with regards to lack of
interoperability between the various settings in the injection models.
'uniformParcelSize' can be changed freely and the number of parcels and
amount of mass that an injector introduces will not change (this was not
true of 'parcelBasisType'). Redundant settings are no longer read by the
injection models; e.g., mass is not read if the number of particles per
parcel is fixed, duration is not specified for steady tracking, etc...

The 'inflationInjection' model has been removed as there are no examples
of its usage, its purpose was not clearly documented, and it was not
obvious how it should be updated as a result of these changes.
  • Loading branch information
Will Bainbridge committed May 11, 2023
1 parent cae4195 commit 0d2fd78
Show file tree
Hide file tree
Showing 129 changed files with 1,169 additions and 4,269 deletions.
1 change: 0 additions & 1 deletion applications/solvers/modules/isothermalFilm/Make/options
Expand Up @@ -13,7 +13,6 @@ LIB_LIBS = \
-lmomentumTransportModels \
-lfilmCompressibleMomentumTransportModels \
-linterfaceProperties \
-ldistributionModels \
-lfiniteVolume \
-lmeshTools \
-lsampling \
Expand Down
1 change: 0 additions & 1 deletion src/Allwmake
Expand Up @@ -38,7 +38,6 @@ dummyThirdParty/Allwmake $targetType $*

wmake $targetType finiteVolume
wmake $targetType lagrangian/basic
wmake $targetType lagrangian/distributionModels
wmake $targetType genericPatchFields

wmake $targetType mesh/extrudeModel
Expand Down
1 change: 0 additions & 1 deletion src/lagrangian/Allwmake
Expand Up @@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments

wmake $targetType distributionModels
wmake $targetType basic
wmake $targetType solidParticle
wmake $targetType parcel
Expand Down
13 changes: 0 additions & 13 deletions src/lagrangian/distributionModels/Make/files

This file was deleted.

1 change: 0 additions & 1 deletion src/lagrangian/distributionModels/Make/options

This file was deleted.

104 changes: 0 additions & 104 deletions src/lagrangian/distributionModels/RosinRammler/RosinRammler.C

This file was deleted.

128 changes: 0 additions & 128 deletions src/lagrangian/distributionModels/RosinRammler/RosinRammler.H

This file was deleted.

This file was deleted.

0 comments on commit 0d2fd78

Please sign in to comment.