low numerical precision in CP_H

70 views
Skip to first unread message

Joep de Boer

unread,
Apr 3, 2026, 6:30:41 AMApr 3
to OpenVSP
After Running some propeller pseudo-steady simulation I was suprised to see a step-wise CP_h and  graph wile CP is perfectly smooth. As the only difference should be some constant. The problem is in the result files, the rotor.1 file CP_h values are written with 5 decimals. Is there an option to write result files in scientific notation? 

If not would like to give it a try fixing it, is this possible without breaking OpenVSP? 

Sincerely,

Joep 
Screenshot from 2026-04-03 11-19-10.pngScreenshot from 2026-04-03 11-18-35.png

Rob McDonald

unread,
Apr 3, 2026, 11:02:44 AMApr 3
to OpenVSP
What version of OpenVSP are you running?

I believe this has been fixed in recent versions.

Rob

Joep de Boer

unread,
Apr 7, 2026, 12:09:47 PMApr 7
to OpenVSP

3.48.2  I haven't checked if it breaks anything but in VSP_Solver.C  I changed to %e for writing result files 
Op vrijdag 3 april 2026 om 17:02:44 UTC+2 schreef Rob McDonald:

Joep de Boer

unread,
Apr 7, 2026, 12:10:02 PMApr 7
to OpenVSP
3.48.2 , I think it is as simple as changing %10.5f to %14.6e in VSP_SOLVER.C  in all fprintf calls however haven't checked it and especially not if something else will break due to it. For now I will change it locally and see if that works.

Op vrijdag 3 april 2026 om 17:02:44 UTC+2 schreef Rob McDonald:
What version of OpenVSP are you running?
Reply all
Reply to author
Forward
0 new messages