-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds thermal simulation, electrical circuit optimizer, mathematics and some more data structures #23
Open
empireu
wants to merge
96
commits into
main
Choose a base branch
from
next
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
…ause the opposite conversion is Temperature#from) and Mass to ThermalMass
Addresses requested changes for #18
Keep that space-dot in there, otherwise at least IDEA's Markdown sees it as a list item starting at 1982 :)
These are components that try to hold an ideal target value (current, potential) while remaining within a power budget. Documentation forthcoming.
- Connection is now abstracted away to an interface, such that masses and "environment" connections use the same interface. - As a result, there is no longer a need for an Environment, Locator, or Body.
This should fix a considerable class of bugs in game logic situations where `circuit.success` (or the result from `step()`) is not checked or not checkable.
empireu
changed the title
Adds thermal simulation, mathematics and some more data structures
Adds thermal simulation, electrical circuit optimizer, mathematics and some more data structures
Dec 14, 2023
…-obb intersection
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.
FEM Thermal Simulator -
org/ageseries/libage/sim/Thermal.kt
ThermalMass
Connection
,MassConnection
,EnvironmentConnection
Simulator
Electrical Circuit Optimizer -
org/ageseries/libage/sim/electrical/mna/CircuitBuilder.kt
VirtualComponent
ElectricalComponentSet
,ElectricalConnectivityMap
CircuitBuilder
,LineCompiler
VirtualResistor
Quantity System (numbers with attached units and conversion operations) -
org/ageseries/libage/data/Quantity.kt
QuantityIterator
,ArrayQuantityIterator
,QuantityArray
(wrappers over the primitivedouble[]
)classify
API (multiple-of-unit prefix and pretty printout of units)auxiliaryClassify
API (pretty printout based on alternative scales)Definitions for
Mass
,AtomicMass
,Time
,Distance
,Energy
,Power
,Potential
,Current
,Resistance
,Radioactivity
,RadiationAbsorbedDose
,RadiationDoseEquivalent
,RadiationExposure
,ReciprocalDistance
,ArealDensity
,Density
,ReciprocalArealDensity
,Velocity
,Substance
,MolarConcentration
,Area
,Volume
,Temperature
,SpecificHeatCapacity
,HeatCapacity
,ThermalConductivity
,ThermalConductance
,ElectricalResistivity
,MolecularWeight
,Pressure
,Intensity
Multiplier definitions from 10⁻²⁴ to 10²⁴
Autodifferentiation framework with a standard library of functions -
org/ageseries/libage/mathematics/Math.kt
Helper functions
Int.pow
frac
map
,mappedTo
avg
approxEq
rounded
snz
,snzE
(Symforce Singularity Removal)sec
,csc
,cot
,coth
,sech
,csch
integralScan
- advanced numerical integration using Adaptive Lobatto QuadratureDual
- generalized autodifferentiation (equivalent to analytical solution)arithmetic operation with
Dual
and withDouble
Dual
versions of most useful functionssin
,cos
,tan
,cot
sec
,csc
sinh
,cosh
,tanh
,coth
sech
,csch
asin
,acos
,atan
asinh
,acosh
,atanh
pow
,sqrt
ln
,ln(1+...)
,log2
,log10
,log(..., ...)
exp
,exp(...) - 1
,exp(..., ...)
atan2
Small geometry framework -
org/ageseries/libage/mathematics/Geometry.kt
Vector2d
,Rotation2d
,Pose2d
,Twist2d
,Twist2dIncrement
Vector3di
Vector3d
,Rotation3d
,Pose3d
,Twist3d
,Twist3dIncrement
Vector4d
Matrix3x3
,Matrix4x4
Vector2dDual
,Rotation2dDual
,Pose2dDual
,Twist2dDual
,Twist2dIncrementDual
Vector3dDual
,Rotation3dDual
,Pose3dDual
,Twist3dDual
,Twist3dIncrementDual
Vector4dDual
,Matrix3x3Dual
,Matrix4x4Dual
BoundingBox
,BoundingBox2d
,BoundingBox3d
,BoundingSphere
,Ray3d
,dda
andbresenham
algorithms in 3DLie Group logarithmic and exponential maps for SO(2), SE(2), SO(3), SE(3)
Interpolation and splines -
org/ageseries/libage/mathematics/Interpolation.kt
andorg/ageseries/libage/mathematics/KDVectors.kt
Helper functions
lerp
,bilinear
,trilinear
Pure dataset interpolation
KDVector
,KDGrid
,GridInterpolator
,MappedGridInterpolator
- Interpolation of single-valued and multi-valued data generalized toK
dimensionsSpline API
SplineSegmentParametric
,SplineSegment1d
,SplineSegment3d
CubicHermiteSplineSegment1d
,QuinticHermiteSplineSegment1d
,LinearSplineSegment1d
,ArcReparamCatenarySegment3d
,QuinticHermiteSplineSegment3d
,LinearSplineSegment3d
ArcReparamCatenary2d
,ArcReparamCatenary3d
SplineSegmentMap
,TreeSplineSegmentMap
,LinearSplineSegmentMap
Spline1d
evaluate
,evaluateDual
,arclengthScan
(viaintegralScan
)Spline3d
evaluate
,evaluateDual
,tangent
,paramSpeed
,curvature
,torsion
,frenet
,frenetPose
,arclengthScan
(viaintegralScan
)InterpolatorBuilder
(Kochanek-Bartels)PathBuilder3d
adaptscan
- adaptive sampling routine with split conditiondifferenceCondition1d
,differenceCondition3d
intersectGrid
-adaptscan
to get intersected integer coordinates (minecraft blocks)SegmentTree
-org/ageseries/libage/data/SegmentTree.kt
MultiSet
-org/ageseries/libage/data/MultiSet.kt
ChemicalElement
- Periodic Table of Elements -org/ageseries/libage/sim/PeriodicTable.kt
Z
,A
,label
,symbol
,neutrons
,protons
,electrons
,period
,group
,phase
,isRadioactive
,isNatural
, classification bymetallicProperty
, classification bytype
,atomicRadius
,electronegativity
,firstIonization
,density
,meltingPoint
,boilingPoint
,isotopeCount
,discoverer
,discoveryYear
,specificHeat
,electronShells
,valence
,excitationEnergy
,thermalConductivity
,electricalResistivity
Material equivalent
Maps for lookup by properties
Event System -
org/ageseries/libage/data/Events.kt
EventSource
,EventDispatcher
,EventHandler
EventBus
Removed antiquated
space
package