# Help on installing CalculiX 2.19 on Windows

**URL:** <https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125>\
**Category:** Uncategorized\
**Created:** [June 5, 2022, 5:23am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125 "2022-06-05T05:23:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_bueno](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/lucas_bueno/32/1595_2.png) [@lucas\_bueno](https://calculix.discourse.group/u/lucas_bueno)\
**Post date:** [June 5, 2022, 5:23am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/1 "2022-06-05T05:23:28Z")

</div>

Hello everyone, I am currently using PrePoMax interface with CalculiX processor to FEA purposes. However, I need to do a steady state dynamic analysis in my structure and PrePoMax does not support it at this time, even though CalculiX does. For this, I need to modify the input file and run it on CalculiX standalone.

I managed to install CalculiX 2.16 on Linux using [this tutorial](https://youtu.be/97-JgLXh6dM), but I want to install it on my Windows laptop so I don’t need to boot the Linux OS for this. I tried to install the bconverged distribution but I’m doing something wrong and cannot spot the mistake, what happens is that when I run an analysis the resulting “Data Sets” does not appear on CGX visualization, and I don’t know why. I know it is my mistake, but I have not enough experience to track it.

If you guys have some good tutorial to install it on my machine, I appreciate. It would help me a lot!

Thanks in advance,  
Lucas.

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [June 5, 2022, 6:32am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/2 "2022-06-05T06:32:18Z")

</div>

In prepomax installation folder look for /Solver subfolder and there you have the ccx exe file, just add that folder to your path or call it directly using an absolute path. Start a windows command prompt (cmd) and launch calculix: ccx -i myjob  
ccx executable sometimes has extra characters in the name

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [June 5, 2022, 7:41am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/3 "2022-06-05T07:41:01Z")

</div>

I never install CalculiX to use it on Windows. I just:

1. download the solver files from here: [http://www.dhondt.de/calculix\_2.19\_4win.zip](http://www.dhondt.de/calculix_2.19_4win.zip) and unzip them
2. copy the files to the folder with input file defining my analysis
3. open command line in this folder (select address bar in file explorer, type cmd and press Enter) - PowerShell won’t work
4. type: _ccx\_static input\_file\_name_
5. after the analysis type: _cgx\_glut results\_file\_name.frd_ to postprocess the simulation in GraphiX

You could also convert the .frd tile to .vtk to do the postprocessing in ParaView but there’s no official converter and the existing ones may not always work.

---

<div class="post-metadata">

**Author:** ![lucas\_bueno](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/lucas_bueno/32/1595_2.png) [@lucas\_bueno](https://calculix.discourse.group/u/lucas_bueno)\
**Post date:** [June 6, 2022, 11:59pm UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/4 "2022-06-06T23:59:44Z")

</div>

Thank you very much @JuanP74 and @Calc_em , I’ve managed to conduct my desired analysis without any software instalation. It was easier than I expected, hopefully this thread can help somebody in the future.

Best regards,  
Lucas.

---

<div class="post-metadata">

**Author:** ![ROC](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@ROC](https://calculix.discourse.group/u/ROC)\
**Post date:** [July 10, 2022, 10:23pm UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/5 "2022-07-10T22:23:32Z")

</div>

Quick question regarding parallelization: how do I specify the number of CPUs to be used for the analysis if ccx is called from the cmd ?

Thanks!

---

<div class="post-metadata">

**Author:** ![dichtstoff](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dichtstoff](https://calculix.discourse.group/u/dichtstoff)\
**Post date:** [July 10, 2022, 10:30pm UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/6 "2022-07-10T22:30:55Z")

</div>

with bconverged in cmdStartup.bat

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/1b6924586155789c12890f6a6e152ae2230c1bb5.png)

Using up to 3 cpu(s) for the stress calculation.

Job finished

* * *

Total CalculiX Time: 13.081227

* * *

> Exit code: 0

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [July 11, 2022, 3:07am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/7 "2022-07-11T03:07:40Z")

</div>

On Windows you can use this command:

`setx OMP_NUM_THREADS=n`

where: n - number of available CPUs.

It will work for all subsequent CalculiX analyses.

---

<div class="post-metadata">

**Author:** ![ROC](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@ROC](https://calculix.discourse.group/u/ROC)\
**Post date:** [July 11, 2022, 11:14am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/8 "2022-07-11T11:14:52Z")

</div>

Thanks. Just for other Users: it should read „set“ and not „setx“

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [July 11, 2022, 4:44pm UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/9 "2022-07-11T16:44:17Z")

</div>

Maybe it depends on the system. I used `setx` and it also worked.

---

<div class="post-metadata">

**Author:** ![Doc82](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/doc82/32/1956_2.png) [@Doc82](https://calculix.discourse.group/u/Doc82)\
**Post date:** [September 27, 2023, 9:28am UTC](https://calculix.discourse.group/t/help-on-installing-calculix-2-19-on-windows/1125/10 "2023-09-27T09:28:00Z")

</div>

I personally recommend installing Calculix in Windows like this:

1. download the installer for windows from the bconverged website ([http://www.bconverged.com/data/content/CalculiX\_2\_10\_win\_002.zip](http://www.bconverged.com/data/content/CalculiX_2_10_win_002.zip));
2. Once the bconverged version is installed you just have to replace the executables ccx.exe and cgx.exe with the latest versions that Dhondt releases ([http://www.dhondt.de](http://www.dhondt.de)).

ATTENTION: if you want to use ccx\_dynamic.exe (Pardiso solver) you must install the Intel MKL (Math Kernel Library) and copy the files that ccx asks you at startup (because it cannot find them) in the C:\Program Files (x86)\ directory bConverged\CalculiX\bin.

IMPROVEMENTS: the “cmdStartup.bat” file found in C:\Program Files (x86)\bConverged\common\site can be improved; an example is this:  
@echo off

rem Modify this file to change your startup settings for the CalculiX command window.

set CYGWIN=nodosfilewarning  
set PRINTF\_EXPONENT\_DIGITS=2  
set VERSION=2.21  
set HOME=G:\CalculiX work  
set CALCULIX\_ROOT=C:\PROGRA~2\bConverged  
set PATH=%CALCULIX\_ROOT%\CalculiX\bin;%CALCULIX\_ROOT%\translation\bin;%CALCULIX\_ROOT%\common\Python;%CALCULIX\_ROOT%\gnuplot\bin;%PATH%

set CCX\_NPROC\_STIFFNESS=6  
set OMP\_NUM\_THREADS=12

set CCX\_NPROC\_EQUATION\_SOLVER=6  
set NUMBER\_OF\_CPUS=6

set CCX\_NPROC\_RESULTS=6  
set CCX\_NPROC\_VIEWFACTOR=6

set CCX\_NPROC\_CFD=6  
set CCX\_NPROC\_BIOTSAVART=6

set PASTIX\_MIXED\_PRECISION=0

set CCXDOCS=ms-its:%CALCULIX\_ROOT%\common\help\bConverged.chm::/ccx.pdf  
set CGXDOCS=ms-its:%CALCULIX\_ROOT%\common\help\bConverged.chm::/cgx.pdf  
set CGXTERMVIEWER=start “”  
set BROWSER=start “” hh.exe

set “arg=%~1”  
if not defined arg goto startup  
if /i %1==ccx goto ccx  
if /i %1==cgx goto cgx  
goto end

:ccx  
:cgx  
“%CALCULIX\_ROOT%\CalculiX%~1%~1.exe” %2 %3 %4 %5 %6  
goto end

:startup  
cd /d %HOME% …  
cls  
advise usage  
goto end

🔚

Good work!!!
