Skip to content

[pull] develop from lammps:develop - #170

Merged
pull[bot] merged 5 commits into
comphy-lab:developfrom
lammps:develop
Jul 14, 2026
Merged

[pull] develop from lammps:develop#170
pull[bot] merged 5 commits into
comphy-lab:developfrom
lammps:develop

Conversation

@pull

@pull pull Bot commented Jul 14, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

akohlmey added 5 commits July 13, 2026 04:18
Implements the feature requested in issue #5087.  The lo/hi positions of
the xplane/yplane/zplane wall styles may now be given as v_name equal-style
variables.  Since damping and friction in granular contact models depend
on the relative velocity between particle and wall, a wall with a position
variable must also be given its velocity through the new 'vel' keyword
(constant or equal-style variable per wall); no finite differencing of
positions is done.  Each particle uses the velocity of its nearer wall.

Also: collapse the triplicated plane parsing in the constructor, stop with
an error when the lo wall does not remain below the hi wall, and bracket
all variable evaluations (including the pre-existing wall temperature one,
also in fix wall/gran/region) with clearstep/addstep_compute so variables
may reference computes.

The KOKKOS version (which still derives from the frozen pre-GranularModel
implementation) reports a specific error message when a wall position
variable or the vel keyword is used.  fix wall/gran/region does not need
this feature since regions provide their own motion, including velocity.
…keyword

For consistency with how moving regions handle motion variables (see
Region::set_velocity(), used by fix wall/gran/region), infer the velocity
of a wall with a position variable from the change of the wall position
between consecutive timesteps and drop the vel keyword again.  The
velocity is zero at the very first evaluation and re-evaluations on the
same timestep (setup of a continued run) keep the previous velocity,
mirroring the vel_timestep guard of regions.
Use delete[] on the target location before (re-)assigning the result of
utils::strdup(), following the convention used for all other copied names
(variables, regions, groups) after the recent Coverity scan cleanup.
Allow setting fix wall/gran wall positions via equal-style variables
@pull pull Bot locked and limited conversation to collaborators Jul 14, 2026
@pull pull Bot added the ⤵️ pull label Jul 14, 2026
@pull
pull Bot merged commit 4e2bce0 into comphy-lab:develop Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant