DesignSPHysics icon indicating copy to clipboard operation
DesignSPHysics copied to clipboard

MyPath/Run.csv could not be opened.

Open ShredderForps opened this issue 3 years ago • 3 comments

Hello,

I am attempting to start learning using the DamBreak example from the website and encoutering an error upon simulation that returns a finished execution code=1.

Dambreak

I attempt to copy and follow all the instructions. I save the case to my desktop and get a folder with DamBreak_out in it. I click the "Run GenCase" button and get no error.

Dambreak2

I then attempt to click "Run" in the simulation control panel using my CPU. Upon executing, a window appears and after a short time, I get an "ERROR" window. The details I will include.

InkedDambreak3

I looked into the source code on DualSPHysics and have found that the line in question is 2930 . I cannot understand why the "if" statement is failing partly because I don't know how a "ofstream" can work as a boolean. Anyway I checked the DamBreak_out folder and the only file named "Run" is a "Run.out" file.

I attempted to download the DesignSPHysics via the FreeCAD addon manager and separately. Both seem to give the error. I would appreciate if you could point me to where I'm messing up. Could it be something to do with my C++?

ShredderForps avatar May 23 '22 05:05 ShredderForps

@ShredderForps can you still reproduce this?

luzpaz avatar Jun 30 '22 22:06 luzpaz

Please, try with the latest released version v0.7.0. In any case, make sure there are no spaces, accents or special characters in the path.

imestevez avatar Mar 04 '24 08:03 imestevez

@ShredderForps :point_up_2:

luzpaz avatar Apr 09 '24 13:04 luzpaz