Closed jgiven100 closed 2 years ago
RFC updated:
smooth
state variable removed from material classstate_vars
instead of making copies. (This is the expected default behavior for "smoothing" features). This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@jgiven100 I'll keep this issue open
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
State_vars smoothing for post-processing & upcoming features
Summary
This feature allows user selection of a single
state_vars
for smoothing via the input.json
. The smoothedstate_vars
will be used in potential upcoming features (e.g. particle removal), visualization, and other post-processing. The structure of this feature is almost entirely based on the currentpressure_smoothing
implementation.Motivation
state_vars
state_vars
Design Detail
Within the input
.json
the state_vars to be smoothed will be defined within the analysis section:Within the
node.h
the a privatestate_vars_
parameter and publicstate_vars()
andupdate_state_vars()
functions will be added. The input forupdate_state_vars()
will include:For the
node.tcc
thestate_vars_
will be initialized to 0.update_state_vars()
will have similar implementation to the currentupdate_mass_pressure()
:Both
map_state_vars_to_node()
andcompute_state_vars_smoothing()
will be added toparticle.tcc
. Here thestate_vars
of interest will be pulled from the input.json
and passed tomap_state_vars_to_node()
.The smoothing procedure will be called from
mpm_base.tcc
same as current pressure smoothing ifstate_vars_smoothing
is present in the input.json
.Drawbacks
state_vars
Rationale and Alternatives
Prior Art
pressure_smoothing
: https://github.com/cb-geo/mpm/pull/396Unresolved questions
state_vars
to be smoothed?Changelog
smooth
state variable from materialstate_vars
with smoothed versions, not to make copies. This is the typical scheme for "smoothing" procedures