Skip to content

Fixed SAVR unit conversion in BehaveUnits.cpp - #72

Closed
j-tenny wants to merge 2 commits into
firelab:masterfrom
j-tenny:fix_savr_unit_conversion
Closed

Fixed SAVR unit conversion in BehaveUnits.cpp#72
j-tenny wants to merge 2 commits into
firelab:masterfrom
j-tenny:fix_savr_unit_conversion

Conversation

@j-tenny

@j-tenny j-tenny commented Sep 7, 2026

Copy link
Copy Markdown

Unit conversions for surface area to volume ratio were backwards. Moved constants from 'toBaseUnits' to 'fromBaseUnits' and vice-versa. Tested and working properly now.

Unit conversions for surface area to volume ratio were backwards. Moved constants from  'toBaseUnits' to 'fromBaseUnits' and vice-versa.
No unit conversion was happening on heat of combustion when creating a custom fuel model. Thus, if creating a custom fuel model with metric inputs, reaction intensity, spread rate, etc was off by a factor of 2.3. Added conversion for this value and tested compiling and basic run.
@j-tenny

j-tenny commented Sep 7, 2026

Copy link
Copy Markdown
Author

Fix unit conversion for heat of combustion in setCustomFuelModel()

After fixing previous issue, noticed that no unit conversion was happening on heat of combustion when creating a custom fuel model. Thus, if creating a custom fuel model with metric inputs, reaction intensity, spread rate, etc was off by a factor of 2.3. Added conversion for this value and tested compiling and basic run.

@shanna-h

shanna-h commented Sep 8, 2026

Copy link
Copy Markdown

Hi @j-tenny, thanks for your submission! We've received the PR and will take a look. We'll follow up here if we have questions or feedback.

@shanna-h

Copy link
Copy Markdown

Hi @j-tenny, I talked this through with the development team, and we think it would be best to split this into two separate PR's. This will make each change easier to review.

Would you mind splitting it up into two PRs. We can then look at each one separately. Thanks!

@j-tenny

j-tenny commented Sep 10, 2026

Copy link
Copy Markdown
Author

No problem, see new PRs #73 and #74. Closing this PR.

@j-tenny j-tenny closed this Sep 10, 2026
@j-tenny
j-tenny deleted the fix_savr_unit_conversion branch September 10, 2026 20:28
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.

2 participants