Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/src/callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ The following pre-defined custom quantities can be used with the
Modules = [TrixiParticles]
Pages = ["general/custom_quantities.jl"]
```

# Mechanical Work Calculator

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

INFO: This autodocs block now includes ThrustCalculator, but the section title and intro only mention mechanical work. Rename or expand the section so users can find thrust documentation under an accurate heading.


The `MechanicalWorkCalculator` is a special custom quantity to be used with the
[`PostprocessCallback`](@ref).

Comment on lines +18 to +22
```@autodocs
Modules = [TrixiParticles]
Pages = ["general/mechanical_work_calculator.jl"]
```
4 changes: 2 additions & 2 deletions src/TrixiParticles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export WeaklyCompressibleSPHSystem, EntropicallyDampedSPHSystem, TotalLagrangian
export BoundaryZone, InFlow, OutFlow, BidirectionalFlow
export InfoCallback, SolutionSavingCallback, DensityReinitializationCallback,
PostprocessCallback, StepsizeCallback, UpdateCallback, SteadyStateReachedCallback,
SplitIntegrationCallback, MechanicalWorkCalculatorCallback,
calculated_mechanical_work,
SplitIntegrationCallback, MechanicalWorkCalculator, calculated_mechanical_work,
Comment thread
efaulhaber marked this conversation as resolved.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

WARNING: MechanicalWorkCalculator and ThrustCalculator are new exported user-facing quantities, but the PR does not add compact and rich Base.show methods required for types shown in callback summaries. Add display methods using summary_header, summary_line, and summary_footer.

ThrustCalculator, calculated_thrust,
SortingCallback
export ContinuityDensity, SummationDensity
export PenaltyForceGanzenmueller, TransportVelocityAdami, ParticleShiftingTechnique,
Expand Down
1 change: 0 additions & 1 deletion src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,4 @@ include("stepsize.jl")
include("update.jl")
include("steady_state_reached.jl")
include("split_integration.jl")
include("mechanical_work_calculator.jl")
include("sorting.jl")
243 changes: 0 additions & 243 deletions src/callbacks/mechanical_work_calculator.jl

This file was deleted.

1 change: 1 addition & 0 deletions src/general/general.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ include("initial_condition.jl")
include("buffer.jl")
include("interpolation.jl")
include("custom_quantities.jl")
include("mechanical_work_calculator.jl")
include("time_integration.jl")
Loading
Loading