STL File not valid
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › STL File not valid
- This topic has 7 replies, 4 voices, and was last updated 4 years, 10 months ago by iJokerify.
-
AuthorPosts
-
April 13, 2020 at 10:13 am #4916iJokerifyParticipant
Hi all. I’m new in openLB and try to run the cylinder3d. But error “std::runtime_error what(): STL File not valid” has responsed there.
Im using Ubuntu 18.04 and openlb-1.3r1.
I’ve saw the same topic, but i don’t get it.
Thanks for your attention!- This topic was modified 4 years, 10 months ago by iJokerify. Reason: the error's description
April 13, 2020 at 12:02 pm #4921sthavishthaParticipantDear iJokerify
You must place the
cylinder3d.stl
file (available in the/examples/laminar/cylinder2d/
folder) in the folder where you run your code.Regards
SthavishthaApril 13, 2020 at 12:16 pm #4922iJokerifyParticipantDear Sthavishtha
Im using CMake and there is the line inside CMakeLists that runs the code:
add_executable(Project ${SOURCE_DIR}/cylinder3d.cpp)
and the error still don’t fixedSincerely
iJokerifyApril 13, 2020 at 12:17 pm #4923sthavishthaParticipantA small mistake in my earlier message : I meant the folder
/examples/laminar/cylinder3d/
April 13, 2020 at 12:21 pm #4924mathiasKeymasterThere is no need to use cmake. If you are not an expert, please, dont change our makefile system.
Best
MathiasApril 13, 2020 at 12:27 pm #4926iJokerifyParticipantDear Mathias
I had asked the question earlier. How to compile the project with OpenLB with IDE. Then i got an advice to use CMake to link source files.
There is one more way to compile the project? Please answer how!Sincerely
iJokerify- This reply was modified 4 years, 10 months ago by iJokerify. Reason: grammar mistake
April 13, 2020 at 5:18 pm #4931AdrianKeymasterYour initial post in this thread indicated that you get a runtime exception upon executing your program. i.e. the problem in this case is not the build system.
On the topic of build systems: OpenLB uses a plain Makefile for building both the library and any applications / examples and we can not support any custom setup on your side, especially considering that we do not know how exactly you configured your CMakeLists.txt file. Any IDE that supports CMake should have no problem coping with plain Makefiles.
On the topic of your initial problem: Sthavishtha already replied that the problem seems to be where you place the STL file / from which working directory you execute the program. I agree with this assessment. Did you try to switch to the cylinder3d example directory in a terminal and manually execute the executable from there?
April 13, 2020 at 6:58 pm #4932iJokerifyParticipantThanks for your reply! Changing directory has no effect, but respond had no error when i tried to run example with “make” and “./cylinder3d”.
However this method do not suitable for me cause i still need the way to debug code.
I’m using CLion to debug and i can’t find the way to run MakeFile through CMake.
Please notify me if you know how to do it!Regards
iJokerify- This reply was modified 4 years, 10 months ago by iJokerify.
-
AuthorPosts
- You must be logged in to reply to this topic.