je-santos / MPLBM-UT

Library for performing multiphase simulations (based on the Shan-Chen model) in complicated geometries (i.e. porous media 3D images)
GNU General Public License v3.0
153 stars 59 forks source link

plbWaring Error in using ImageMagick convert command #69

Closed skuide closed 2 years ago

skuide commented 2 years ago

i am a new one in LBM, and MPLBM helps me alot in learning LBM , thanks alot for your selflessness and dedication! i run these code in win11 WSL2 Ubuntu 20.0.4.4 environment and my python version is 3.8.10, when i run contact_angle_drop expample, it can finish the simulation, but i will get a plbWarning.dat file in output floder, the content of plbWarning.dat are lines of repeated "Error in using ImageMagick convert command." and the files in output floders are as flow:

iter_num.dat rho_f1_000_00005000.vti rho_f1_000_00014000.vti rho_f1_y_000_00006000.gif lattice1.dat rho_f1_000_00006000.gif rho_f1_000_00015000.gif rho_f1_y_000_00007000.gif lattice2.dat rho_f1_000_00006000.vti rho_f1_000_00015000.vti rho_f1_y_000_00008000.gif output.dat rho_f1_000_00007000.gif rho_f1_000_00016000.gif rho_f1_y_000_00009000.gif placeholder.txt rho_f1_000_00007000.vti rho_f1_000_00016000.vti rho_f1_y_000_00010000.gif plbWarning.dat rho_f1_000_00008000.gif rho_f1_000_00017000.gif rho_f1_y_000_00011000.gif porousMedium.stl rho_f1_000_00008000.vti rho_f1_000_00017000.vti rho_f1_y_000_00012000.gif porousMedium.vti rho_f1_000_00009000.gif rho_f1_000_00018000.gif rho_f1_y_000_00013000.gif rho_f1_000.dat rho_f1_000_00009000.vti rho_f1_000_00018000.vti rho_f1_y_000_00014000.gif rho_f1_000_00001000.gif rho_f1_000_00010000.gif rho_f1_000_00019000.gif rho_f1_y_000_00015000.gif rho_f1_000_00001000.vti rho_f1_000_00010000.vti rho_f1_000_00019000.vti rho_f1_y_000_00016000.gif rho_f1_000_00002000.gif rho_f1_000_00011000.gif rho_f1_000_00019200.gif rho_f1_y_000_00017000.gif rho_f1_000_00002000.vti rho_f1_000_00011000.vti rho_f1_000_00019200.vti rho_f1_y_000_00018000.gif rho_f1_000_00003000.gif rho_f1_000_00012000.gif rho_f1_y_000_00001000.gif rho_f1_y_000_00019000.gif rho_f1_000_00003000.vti rho_f1_000_00012000.vti rho_f1_y_000_00002000.gif rho_f1_y_000_00019200.gif rho_f1_000_00004000.gif rho_f1_000_00013000.gif rho_f1_y_000_00003000.gif run_num.dat rho_f1_000_00004000.vti rho_f1_000_00013000.vti rho_f1_y_000_00004000.gif vel_f1_000.dat rho_f1_000_00005000.gif rho_f1_000_00014000.gif rho_f1_y_000_00005000.gif

and when i run droplet_viz.py, it shows the information below and abort the visualization.

Simulation Type: 2-phase Simulation Directory: Input Folder: input/ Output Folder: tmp_m0.4/ Geometry File: flat_surface.raw Geometry Data Type: int8 Geometry Size: Nx=80, Ny=80, Nz=80 Geometry Name: flat_surface Domain Size: nx=80, ny=80, nz=35 Restart Simulation: False Fluid 1 Equilibrium Density: 2 Fluid 2 Equilibrium Density: 2 Fluid 1 Force: 0 Fluid 2 Force: 0 Using Pressure Boundary Conditions: False Initial fluid configuration setup with custom settings. Save simulation state: True Saving simulation state every 5000 iterations. Saving density vtks every 1000 iterations. Saving density fluid 1 and fluid 2 vtks: False 0.39718491094581104 Aborted

my imagemagick version is 6.9.10-23, i thought it maight cause by the wrong version of imagemagick and i searched related issues by google, but still i didn`t find a solution, so would you please help me solve this problem? thanks alot !

je-santos commented 2 years ago

Hi,

I faced this problems in other systems. I don't have a good solution for it, besides checking your imageMagik installation and maybe trying different versions.

This error causes to not have .png cross sections at the end of the simulation, but it does not affect any core functionalities.

Let us know what you find out