Problem with STL file

hello my friends.

My name is Navid Samiei and I am a master student. In my dissertation, I work on advection and diffusion of air pollutants with LBM and due to the difficulty of parallelism, I decided to use PALABOS for this purpose but I encounter some problem in this library. First of which is the implementing of STL file in this program for which I receive this error message.

here my code for this program:

pcout << std::endl << “Processing the object geometry.” << std::endl;

Array<T,3> center(cx, cy, cz);

Array<T,3> centerLB(center);

TriangleSet triangleSet (“stack.stl”, DBL);

this is the error message:

example: /home/navid/Desktop/example/…/palabos-master/src/offLattice/triangleSet.hh:237: void plb::TriangleSet::readSTL(std::__cxx11::string, plb::TriangleSelector*) [with T = double; std::__cxx11::string = std::__cxx11::basic_string]: Assertion `fp != 0’ failed.

Processing the object geometry.

[navid-ThinkPad-T440:02180] *** Process received signal ***

[navid-ThinkPad-T440:02180] Signal: Aborted (6)

[navid-ThinkPad-T440:02180] Signal code: (-6)

[navid-ThinkPad-T440:02180] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7feeaa5a5980]

[navid-ThinkPad-T440:02180] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7feeaa1e0fb7]

[navid-ThinkPad-T440:02180] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7feeaa1e2921]

[navid-ThinkPad-T440:02180] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x3048a)[0x7feeaa1d248a]

[navid-ThinkPad-T440:02180] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x30502)[0x7feeaa1d2502]

[navid-ThinkPad-T440:02180] [ 5] /home/navid/Desktop/example/example(_ZN3plb11TriangleSetIdE7readSTLENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS_16TriangleSelectorIdEE+0x59)[0x55b4909ddde7]

[navid-ThinkPad-T440:02180] [ 6] /home/navid/Desktop/example/example(_ZN3plb11TriangleSetIdEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9PrecisionENS_25SurfaceGeometryFileFormatEPNS_16TriangleSelectorIdEE+0x149)[0x55b4909d68e3]

[navid-ThinkPad-T440:02180] [ 7] /home/navid/Desktop/example/example(main+0x13d)[0x55b4909c6917]

[navid-ThinkPad-T440:02180] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7feeaa1c3bf7]

[navid-ThinkPad-T440:02180] [ 9] /home/navid/Desktop/example/example(_start+0x2a)[0x55b4909c630a]

[navid-ThinkPad-T440:02180] *** End of error message ***

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Hi Navidsamiei,

I met a similar problem with you.

I am still working on it. Maybe we can share some ideas.

Regards,
Shuang

hello my friend
you may not make the file that you want to save the outputs
do you deal with a high Reynolds problem?

Hi Navidsamiei,

I am dealing with Re ranges from 0.001-1, application in membrane filtration prcocess

Regards,
Shuang