Hi, everyone
I setup the PrePoMax V1.3.4, ande do the examples (from PrePoMax-v1.1.0-examples-manual) step-by-step using the default original solver (ccx_static.exe). It’s OK. But, I tried to change other version solver(calculix2.19win64, binaryes for windows from Prool’s modifications of CalculiX CrunchiX, GitHub - calculix/ccx_prool: Prool's modifications of CalculiX CrunchiX (ccx)). I renamed ccx_2.19.exe as ccx_static.exe and replaced the original solver in the Solver folder. Some necessary dlls for cygwin were also included in this folder.
However, when I try to solve a example, Job failed. *ERROR in openfile: could not open file Analysis-1.dat. But, If I use the original solver, It’s OK. Why? How to deal with this problem? Thanks.
Make sure that you can run the analysis with this solver via command line: ccx_static jobname
In the settings of the PrePoMax, there are settings regarding CalculiX where you can choose the .exe file that you will use as a solver. No need to rename the solvers.
Thanks.
Although I use the PrePoMax to do the “Pressure loaded ring segment” example, when I use the default original solver, It run OK. But when I change to use the Prool’s modifications of CalculiX CrunchiX, It’s failed, but It can generate the inp file. I run the inp via command line with the Prool’s solver. It run OK. The results are also same with the default original solver. How can I integrate other version of calculix into the ProPoMax?
Thank you very much. Change the path is a very simple way. It’s a good idea. But how can I change other solver to run job?
If you use the Prool’s solver in the command line, do you use the same folder as from the PrePoMax? There should be no differences if you run the solver from cmd or PrePoMax.
Blockquote How can I integrate other version of calculix into the ProPoMax?
I have a similar problem. To solve it I use different CMD files to run different CCX executables. In PPM you can run CMD files instead of EXE ones. This additionally allows you to customize CCX environmental variables. So you can put several CMD-files in one “executable” path. Each CMD-file can run different CCX solver and these solvers can be in different directories. Here is an example of such a CMD file:
rem Batch file for ccx with PaSTiX/SPOOLES/Pardiso
rem @echo off
rem ==== Set path to CalculiX executable here ====
set CCX_PATH=C:\Tools\CalculiX
rem ==== CalculiX settings ========
set CCX_NPROC_RESULTS=%NUMBER_OF_PROCESSORS%
set CCX_NPROC_STIFFNESS=%NUMBER_OF_PROCESSORS%
set OMP_NUM_THREADS=%NUMBER_OF_PROCESSORS%
rem ==== MKL (Pardiso) settings ========
set MKL_NUM_THREADS=%NUMBER_OF_PROCESSORS%
rem set MKL_DOMAIN_NUM_THREADS="MKL_BLAS=4"
set MKL_DYNAMIC=FALSE
set OMP_DYNAMIC=FALSE
rem ==== PasTiX settings ===========
set OPENBLAS_NUM_THREADS=1
rem Must be used for this version
set PASTIX_MIXED_PRECISION=1
rem 1 - yes(*), 0 - no
set PASTIX_ORDERING=0
rem 0 - Scotch(*), 1 - Metis
set PASTIX_SCHEDULER=0
rem 0 - Static(*), 1 - StarPU, 3 - Sequential, 2 - parsec (not working yet)
rem === Final CCX run command ===
%CCX_PATH%\ccx_static.exe -i %~n1
Thanks. I put the inp file (generated by ProPoMax) into the Solver folder (contains original solver and Prool’s solver, necessary dlls). Then, I changed the path to this Solver folder in win10 command. Run CMD in win10 command line. Both solvers can get same results. All of them run OK. But when I selected the Prool’s ccx as actived solver. It still failed.(*ERROR in openfile: could not open file Analysis-1.dat.). Why?
in previous versions, also i have similar problem of Prool’s distribution to running and only guess about read/write permissions.
Cay you share the whole Prool’s distribution and the test file for me to see if I can find the problem?
Prool distribution is part of CalculiX Launcher, a tool to setup analysis of prebuild mesh to ready to run.
also, it has additional of Umat from the past of CalculiX Yahoo Group i posted (Mohr Coulomb & Drucker Prager). another are in the solver of Iterative Scaling which officially not supported at these days. below the latest link to download.
https://calculix.kharkov.org/2022/01/04/calculix-2-19-for-windows-64-bit/
Thank you very much.
I am a new users and can not upload any attachments from the forum information. I am very sorry.
-
The Prool’s distribution can be download from the webpage ( CalculiX 2.19 for Windows 64 bit):
https://calculix.kharkov.org/2022/01/04/calculix-2-19-for-windows-64-bit/
After unzip folder, I can selecte the ccx_2.19.exe and necessary dlls in the ccx folder. -
PrePoMax version v1.3.4 was downloaded from the websit.
-
About the inp file, I did a simple example (Pressure loaded ring segment). Step by step from PrePoMax v1.1.0 Examples (https://prepomax.fs.um.si/wp-content/uploads/2021/09/2021.09.07-PrePoMax-v1.1.0-examples-manual.pdf).
Could you help me?
Best regards to you. Thanks.
GCLiu
Thanks.
I made a CMD file as your example and put it in the CalculiX “EXE” path. In PPM, I selected this CMD file from Tools->Calculix->Excutable instead of EXE.
In the CMD file, set CCX_PATH=XXXXXXXX , a path to CalculiX executable which I want to used. “%CCX_PATH%\ccx_static.exe -i %~n1” , the ccx_static.exe name was specified as I want, for exmaple the Prool’s solver (.exe). Other parameters had not be changed.
It’s really convenient to change different solvers. When I selected the default solver in PPM, It worked very well. But When I used the Prool’s solver ( the path and .exe name also be modified in the CMD file), It still got the *ERROR in openfile: could not open file Analysis-1.dat.
Did I make any mistakes in the CMD file?
Best regards to you. Thanks.
GCLiu
I setup the PrePoMax version v1.3.4 and compiled PrePoMax version v1.3.5. Both of the versions got same ERROR.
When I selected the default solver in PPM, It worked very well
It means CMD file is correct.
But When I used the Prool’s solver ( the path and .exe name also be modified in the CMD file), It still got the *ERROR in openfile
According to my knowledge Prool’s solver is compiled using Cygwin. It is not a native Windows application. Perhaps this is the reason of your problems. I think you need to contact Mr. Pustovoitoff directly via his e-mail
The Prool’s solver is compiled using Cygwin. Could you give me another windows version CCX and its makefile? I want to try it. So that, I can compile the solver with my subroutine in the future. Thanks.
IMHO, the simplest procedure how to compile CCX as native Windows application is available at the Mecway forum. You can find other tips at the Calculix forum, which is more suitable for CCX-related questions.
I used the Mecway version, and builded according to his instructions. Installed MSYS2 and mingw. The compiled ccx.exe can be integrated into the PPM. PPM run very well. It is very exciting.
Thank you very much.
Best wishes.
GCLiu