Skip to content
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

Garbled .ini "SMOKEFIREPROP" #1430

Closed
obscureed opened this issue Sep 9, 2022 · 11 comments
Closed

Garbled .ini "SMOKEFIREPROP" #1430

obscureed opened this issue Sep 9, 2022 · 11 comments

Comments

@obscureed
Copy link

This is a slightly tricksy bug to replicate, but I think the following steps demonstrate it:
(1) Run any project in FDS6.7.9. (I've added a small example, tunnel0003.fds, renamed as tunnel0003.txt, in case it matters.)
(2) Open the results in the corresponding SMV6.7.21. Save the settings. Copy the resulting .ini file to step2.ini. Close smokeview.
(3) Open the results in a new session of smokeview. Save the settings. Copy the resulting .ini file to step3.ini.
(4) Display some results -- for example, 3D visualisation of HRRPUV. Pause the results display by pressing "t". Save the settings. Copy the resulting .ini file to step4.ini.

Now compare the .ini files. There are differences between step2.ini and step3.ini, but they seem to be benign. The (presumed) bug is that step2.ini and step3.ini contain this text:

SMOKEFIREPROP
 0 1SMOKEPROP
8700.000000

which I suspect is a garbled version of the equivalent in step4.ini:

SMOKEPROP
8700.000000

If SMOKEFIREPROP is a parameter name, then the bug is also that step4.ini does not contain it.
I'm seeing this behaviour on the Jun 28 2022 build, Revision SMV6.7.21-0-gccbc561da-release, LINUX64 platform.

tunnel0003.txt

@gforney
Copy link
Contributor

gforney commented Sep 9, 2022 via email

@obscureed
Copy link
Author

I would have preferred more descriptive names than SMOKEPROP and SMOKEFIREPROP -- SMOKE3DEXTINCTION, for example.

@gforney
Copy link
Contributor

gforney commented Sep 9, 2022

wanted to leave open the option of adding other smoke or fire properties if needed to these keywords.

@obscureed
Copy link
Author

From my perspective as a user, descriptive names are helpful. If a new smoke property is added, it is helpful if it is given a new descriptive name, rather than lumped with unrelated numbers into one catchall name. I sometimes have to hunt through the .ini file for a relevant-sounding parameter name, and then experiment with it to see if it does what I want. The documentation does not describe all the relevant parameters -- it does not currently mention SMOKEPROP or SMOKEFIREPROP, for example.

@gforney gforney closed this as completed Sep 9, 2022
@gforney gforney reopened this Sep 9, 2022
@gforney
Copy link
Contributor

gforney commented Sep 9, 2022

@gforney
Copy link
Contributor

gforney commented Sep 14, 2022

did the smokeview I posted fix your issue?

@obscureed
Copy link
Author

Sorry, it will be a few days before I have time to test this.

@obscureed
Copy link
Author

I've tried that test version of smokeview on the test case I posted. The three .ini files are all different from each other in various ways, which I find slightly odd. In particular, step4.ini is missing the settings of SMOKEFIREPROP that are present in the earlier step2.ini and step3.ini. Can it be correct that displaying some results destroys a setting? Even so, the .ini files are not garbled, so I'll mark this as closed. Thanks for your efforts!

@obscureed obscureed reopened this Oct 18, 2022
@obscureed
Copy link
Author

Reopening because I think there are a couple of similar missing '\n' issues in saved .ini files:
• end of numeric line after "CO2COLOR" (or start of DIRECTIONCOLOR)
• end of numeric line after "SHOWHRRPLOT" (or start of SHOWMISSINGOBJECTS)

I haven't seen any problems because of these, so I'm just highlighting for info. No need from me for a patched version, thanks.

@gforney
Copy link
Contributor

gforney commented Oct 18, 2022 via email

@obscureed
Copy link
Author

Great, thanks. I've verified the patched version and am closing the issue.

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

No branches or pull requests

2 participants