compile with vtk support

Submitted by NSalloum on Mon, 10/22/2018 - 10:37

hello,

I am trying to recompile LIGGGHTS after applying some modifications in the input.cpp file, but I could not manage doing that unless I changed the (USE_VTK = "ON") to "OFF" in the Makefile.user, as I was getting the following error :

Creating list of contact models completed.
make[1]: Entering directory '/home/salloum/LIGGGHTS-BOSCH-master/src/Obj_auto'
Makefile:829: *** 'Could not obtain VTK_MAJOR_VERSION. As AUTOINSTALL_VTK is not set to "ON" we cannot continue'. Stop.
make[1]: Leaving directory '/home/salloum/LIGGGHTS-BOSCH-master/src/Obj_auto'
Makefile:106: recipe for target 'auto' failed
make: *** [auto] Error 2

I am trying now to run my input script involving the following command:

dump dmp all custom/vtk 33336 post/movingMesh_*.vtk id type type mass x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius diameter.

But I am getting the following error:

Invalid dump style.

and after trying to recompile having the following commands in Makefile.user: (USE_VTK = "ON") and AUTOINSTALL_VTK = "ON", I am getting the following error:

Creating list of contact models completed.
make[1]: Entering directory '/home/salloum/LIGGGHTS-BOSCH-master/src/Obj_auto'
'Could not compile VTK example. As AUTOINSTALL_VTK is set to "ON". VTK will now be automatically downloaded to ../../lib'
Cloning into '../../lib/vtk/src'...
fatal: unable to access 'https://gitlab.kitware.com/vtk/vtk.git/': gnutls_handshake() failed: An unexpected TLS packet was received.
Makefile:787: *** 'Could not perform "git clone" of https://gitlab.kitware.com/vtk/vtk.git into ../../lib/vtk/src'. Stop.
make[1]: Leaving directory '/home/salloum/LIGGGHTS-BOSCH-master/src/Obj_auto'
Makefile:106: recipe for target 'auto' failed
make: *** [auto] Error 2.

any suggestions in this regards please?

best wishes

mschramm | Mon, 10/22/2018 - 14:35

Hello,
I have had no luck with the auto install of vtk but to get the non vtk up and running,
simply replace
custom/vtk
with
custom

This will write an ascii file.
You will then need to convert it into something that paraview (or another viewing software) can read.
You can look into
https://github.com/richti83/ParaView_Reader_for_LIGGGHTS
for binaries for paraview 5.4.1

NSalloum | Mon, 10/22/2018 - 15:56

I am really thankful for your tip mschramm, but may you please inform me how can I apply changes to the Paraview I am currently using through the link you've stated, in order for me to be able to load the .*liggghts files for example in it.

mschramm | Mon, 10/22/2018 - 17:14

You will need to load the module in paraview
Tools > Manage Plugins > Load New
Navigate to where you downloaded the binaries (or where you compiled from source) for the liggghts_reader.so and hit ok.
You should see liggghts_reader is loaded.
Hit the + to the left of the reader and make sure that auto load is selected.
From here you should be able to load in your .liggghts files

NSalloum | Tue, 10/23/2018 - 08:27

I tried following these steps, but I am still getting the following error in Paraview:

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/ParaViewCore/ClientServerCore/Core/vtkPVPluginLoader.cxx, line 388
vtkPVPluginLoader (0x55d295c44ef0): libvtkPVClientServerCoreCore-pv5.4.so.1: cannot open shared object file: No such file or directory

what do you think the problem is?

best wishes

NSalloum | Wed, 10/24/2018 - 12:06

I am using the version of 5.4.1 which I got it by simply typing "sudo apt install paraview" in the terminal, since I couldn't manage installing it from the Paraview's website, i.e. it has been downloaded but not run.

mschramm | Thu, 10/25/2018 - 18:26

To use lpp.
Run a simulation using dump dmp custom instead of custom/vtk
Navigate to your output folder and type
lpp *.liggghts
Assuming your ouput files ended in .liggghts
This will convert the ascii files into vtk files.