Package Details: netgen-cgx 6.2.2405-1

Git Clone URL: https://aur.archlinux.org/netgen-cgx.git (read-only, click to copy)
Package Base: netgen-cgx
Description: `ng_vol` utility enabling Calculix CGX to mesh with Netgen.
Upstream URL: https://github.com/NGSolve/netgen
Keywords: calculix fea fem netgen
Licenses: LGPL2.1
Submitter: Richardn
Maintainer: Richardn
Last Packager: Richardn
Votes: 1
Popularity: 0.010462
First Submitted: 2024-07-08 06:29 (UTC)
Last Updated: 2024-10-04 18:30 (UTC)

Latest Comments

Richardn commented on 2025-02-08 15:03 (UTC) (edited on 2025-02-08 15:13 (UTC) by Richardn)

@carlosal1015 Sorry for so late a reply, I completely forgot.

In Calculix CGX manual, section B.16 "How to deal with CAD-geometry":

The CAD format is supported by a stand alone translator (see the calculix home pages). In this case the user can mesh the surfaces with structured (elty setname tr3 etc.) or unstructured triangles (elty setname tr3u etc.). The user might modify this surface mesh until he is happy with it. The surface mesh can then be filled with tets created by an external auto-mesher called from within cgx (mesh setname tet). The cgx uses the tet-mesher from NETGEN or TETGEN for this task. The command "asgn" is used to switch between them.

Therefore cgx can only generate a tet-mesh if one of these programs are accessible (TETGEN like glut is included in the cgx package). For the full functionality replace the original ng_vol source file in the NETGEN package with the modified program ng_vol from the cgx-distribution and build it again. This version regards a target element size. Tetgen is able to regard that size unchanged.

Basically if one want to use NETGEN to mesh inside CGX, CGX expects a binary named ng_vol to be found in PATH, and this binary is a modified ng_vol utility just for use with CGX. This AUR package ships the source code for the modified ng_vol utility provided by the CGX developers, builds NETGEN for the utility to link to, compiles and installs the utility for you.

Now I think about it, maybe I should depend on other NETGEN AUR packages instead of trying to build NETGEN here. But still, with my current approach:

  • the NETGEN built is absolutely minimal, with Python support not even built.
  • is a self-contained solution to "use NETGEN in CGX", which things like "NETGEN updates and changes the API" "CGX developers have not updated ng_vol.cpp yet" won't break.

carlosal1015 commented on 2025-01-02 00:27 (UTC)

What is the difference with respect to netgen-git or netgen-nogui?