Dissipation driven history - #1768
Open
IvarStefansson wants to merge 3 commits into
Open
Conversation
The floor on the damage history was a clip, whose Jacobian mask uses strict inequalities, so a history sitting exactly on the floor counted as clipped and contributed no derivative. Zero is the initial value of every simulation and the standing value of every cell that has not yet slipped, and the softening's derivative is largest there, so the damage channel was absent from the Newton tangent until the first cell slipped -- with the value correct throughout, so nothing else showed it. Use maximum with the history as first argument, whose documented tie-breaking takes the Jacobian from that argument where the two are equal. A clip with an infinite upper bound was a maximum in any case, so compatible with intended previous behaviour. Also adds two tests.
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.
Stacked on the composed friction PR — the base branch is
composed-friction-partition,not
develop.Completes the round-2 damage law. The history stops being Archard's load times distance
and becomes the frictional work per unit area,
k = mu* sigma_n, withmu*read throughfriction_coefficientso the driver cannot drift from the friction bound. A smoothcontact carrying a heavy load then wears more slowly than a rough one under the same load
and slip, which the load-based driver could not express.
mu*may depend on the damage state, so the current step's contribution toLambdadepends on
Lambda. This is implicit, not circular:mu*is non-increasing in thehistory, so the residual is strictly decreasing in it and the root is unique.
Commits
MAINT: Store the damage history at all time steps— a prerequisite. The convolutionreaches step
iviaprevious_timestep(i), which rewrites every variable in thecoefficient; once that contains
mu*it contains the history, which therefore needs astored value at every index rather than the default window of one. Omitting it fails with
a
KeyErroron the third time step of a run;TestAllTimeStepStoragepins it without asimulation. Results-neutral on twelve pinned configurations: bit-identical, all 80 arrays.
ENH: Dissipation-driven damage history— the driver, plus two consequences.The example's wear energies are divided by 100, ratio preserved.
Lambdashrinks byexactly
mu*, andLambda_cis an energy per area, so the scale that produces order-onesoftening moves with the driver's definition. Without it the damage state moves by 0.0027
per step against an assertion requiring 0.01.
The exact solution loses its damage machinery, 179 lines. It restated the softening,
the convolution and the driver in numpy, and the new driver would have required the stress
partition and composed friction too, plus a memoised forward recursion for the implicit
step. Not worth building: After multi-PR drift, nothing reads any
exact_*damage field,normal_tractionreturns zeros so the reference history is identically zero, and every formula it restated
is separately unit-tested against a closed form.
EXACT_SOLUTION_METHOD_NAMESnowdeclares the one quantity that keeps a reference — the damage length, which follows from
the prescribed displacements alone.
make_damagesavedata_classgained an optionalexact_namesdefaulting to all names, so downstream callers supplying their ownreferences are unaffected.
collect_dataalso loses itshasattrfallback, the last silent-failure pathfrom the previous round.
Verification
The driver's linearity in traction survives,
because the fixture leaves the transitional traction at its infinite default and the
partition is inert — so rather than deleting that test, its precondition is now explicit
and a counterpart asserts the driver grows faster than the load when the partition is
active.