i receive some error messages when using Tetgen mesher in CGX, try add path to environmental variable still did not work.
any hints and suggestion?
Tet-mesh body:B052
+surf:S038
+surf:S040
+surf:S046
-surf:S048
-surf:S034
+surf:S044
The system cannot find the batch label specified - tetgen
Try to read TG file
reading Tetgen format
MODEL NAME: mesh.1ERROR: The input file "mesh.1.node" could not be opened.
Locate the tetgen binary. (I suspect it is in C:\PROGRA~2\BCONVE~1\CalculiX\bin)
Edit the environment variable Path, and add the location of the tetgen binary.
On my machine (FreeBSD 13.2, CalculiX 2.21) I could run your fbd file just fine.
So I looked into what cgx was doing using the truss(1) program that tells me what system calls are being used. What I saw was that cgx reads the input, writes some files and searches for and then calls the tetgen program. Now tetgen produces a bunch of output. Later cgx writes its own output.
When I run your example, I see the output from tetgen that is missing from your output;
Since your cgx run cannot find the output file that tetgen should have produced, and since the output from tetgen isnāt shown, I suspect that (a) cgx either did not find tetgen or (b) that the tetgen run failed in some way.
Since there is no tetgen output at all, (a) seems more likely.
Looking at the source code of cgx, the way it calls tetgenrequires that the directory where the tetgen binary can be found in the Path environment variable.
So;
Locate the tetgen binary. (I suspect it is in C:\PROGRA~2\BCONVE~1\CalculiX\bin)
Edit the environment variable Path, and add the location of the tetgen binary.
thanks for test and reporting, it seems another possible reason in tetgen not working properly since both steps you suggested still not work.
prpbably in *.bat file of cmdStartup files setting by bConverged need to modify, but i did not know how.
@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=C:\Users\user\DOWNLO~1
set CALCULIX_ROOT=C:\PROGRA~2\BCONVE~1
set PATH=%CALCULIX_ROOT%\CalculiX\bin;%CALCULIX_ROOT%\translation\bin;%CALCULIX_ROOT%\common\Python;%CALCULIX_ROOT%\gnuplot\bin;%PATH%
set CCX_NPROC_STIFFNESS=2
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
:end
You will probably have to close the cmd window from which you were running cgx and open a new one for it to pick up any change in Path.
If that doesnāt solve the problem, you will probably have to run cgx under some kind of debugger/system call tracer so you can see what happens when it tries to run tetgen. Since Iām not a windows user I cannot really advise you what to use here.
xyont, I just copied your code and run it. It worked on my (Linux) side. So it is indeed just an access problem. As a quick fix you could copy the tetgen program into your working folder (And maybe also cgx). And you could contact Rafal Brzegowy. His mail should be either written on www.dhondt.de or in the README in his calculix_for_win package.