Skip to content

scale step sizes relative to reference step#1568

Open
arun3688 wants to merge 3 commits intoOpenModelica:maintenance/v2.1from
arun3688:scaleStepSize
Open

scale step sizes relative to reference step#1568
arun3688 wants to merge 3 commits intoOpenModelica:maintenance/v2.1from
arun3688:scaleStepSize

Conversation

@arun3688
Copy link
Contributor

@arun3688 arun3688 commented Mar 6, 2026

Purpose

Scale initial, minimum, and maximum step sizes by refStep to ensure safe and consistent variable-step solver behavior. Sets defaults:

   refStep = commandLine > defaultExperiment.StepSize > default Value
   initialStepSize = 1e-3 × refStep
   minimumStepSize = 1e-12 × refStep
   maximumStepSize = refStep

This prevents tiny steps at t=0 and improves solver stability.

@arun3688
Copy link
Contributor Author

arun3688 commented Mar 6, 2026

@rruusu see if this looks fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant