Dhondtguido / CalculiX

This repository contains the source files of CalculiX, a three-dimensional Finite Element Program (www.calculix.de).
GNU General Public License v2.0
75 stars 19 forks source link

nk_ error issue + ubuntu makefile #38

Closed wr1 closed 1 month ago

wr1 commented 1 year ago
  1. avoid raise nk_ error for large composite models
  2. add a makefile for convenient building on ubuntu
oldninja commented 8 months ago

@wr1 Any reason for the 300 instead of the 20? Just curious to know if there is anything specific.

wr1 commented 7 months ago

@wr1 Any reason for the 300 instead of the 20? Just curious to know if there is anything specific.

No "real" reason, iteration with larger wind turbine blade models caused the solver to keep working when set to 300 (and fail at lower values).

davidosterberg commented 2 months ago

I ran into the same issue. Also designing a wind turbine blade. It is common for wind turbine blades to require much more than 20 layers. To me this change makes sense.

I have also tested this and can report that it works. I tested by modifying the source package of calculix-ccx 2.20.1 on Debian bookworm.

davidosterberg commented 2 months ago

Having tested this some more. The issue with this fix is that Calculix will try allocate an memory for all the layers. Wherther they are used or not. I have found that even a modest number of elements, such as 10000, prevents Calculix to run due to allocation issues.