Git Product home page Git Product logo

cae's People

Contributors

imirzov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cae's Issues

Spiro splines for better curve quality

enhancement:
Circular Arcs are simple but not the best curves in nature and in technics.
Bezier Splines are limited in precision and mathematics.
spiro splines are Derivats of spirals and better splines than bezier splines.

See phd Levien
https://levien.com/phd/phd.html

spiro splines are implemented in Inkscape.

see some more information in
https://raphlinus.github.io/curves/2018/12/21/new-spline.html
and Code in https://levien.com/spiro/

in Inkscape the spiro path tool was improved to more stability and robustness.
Source code is free and open source available.

Sets with underscores are not plotted.

If I click an NSET with name "Nn_root" is not plotted, giving the error
plot: set:Nn?root does not exist

without the underscores works fine.

Btw, its a genius idea to interface to the CGX window!

Windows executable doesn't start

Traceback (most recent call last):
File "ccx_cae.py", line 16, in
File "c:\users\ihor\appdata\local\proyInstaller\loader\pyimod03_importers.py" line
File "site-packages\PyQt5_init_.py
File "site-packages\PyQt5_init_.py
ImportError: unable to find Qt5Core.dll on PATH
[8988] Failed to execute script ccx_cae

image

Configs are not saved

I am running the latest release in Ubuntu 20.04, and the settings are not saved. When I restart the software is loaded back with defaults.

I have no experience in Python, only MATLAB and Julia but I will try to have a look.

got an unexpected keyword argument 'blocks'

I followed instructions, installed all the requirements and tried to run CAE in Ubuntu 20.04. I am getting the following error:

Traceback (most recent call last):
File "/home/kaushik/CalculiX/cae/src/cae.py", line 105, in
i.import_file(start_model)
File "/home/kaushik/CalculiX/cae/src/importer.py", line 207, in import_file
self.m.Mesh = model.parsers.mesh.Mesh(blocks=self.keyword_blocks)
TypeError: init() got an unexpected keyword argument 'blocks'

Another small issue, that I found was:

Another small issue, that I found was:

  • when I run the ./cae.sh it gives the following message
    line 7: ../Downloads/cae-master/src/cae: No such file or directory

So I changed the src/cae in line 7 to cae.py, then it passes but gives the xlib problem

Originally posted by @cfernandesINEGI in #8 (comment)

Error Unexpected Keyword 'blocks'

Hi, I am running Linux, after following the installation instructions I tried to open an example. I always get the following error:
~/Downloads/cae-master/src/importer.py", line 207, in import_file self.m.Mesh = model.parsers.mesh.Mesh(blocks=self.keyword_blocks) TypeError: __init__() got an unexpected keyword argument 'blocks'

What can I do?

Can't open the program

Hi,

first of all, thank you for the piece of software.

I find the following issue:
After sudo ./cae.sh

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Traceback (most recent call last):
File "/home/cfernandes/cae-master/src/cae.py", line 212, in
w.initialize()
File "/home/cfernandes/cae-master/src/gui/window.py", line 198, in initialize
self.d = Xlib.display.Display()
File "/home/cfernandes/.local/lib/python3.6/site-packages/Xlib/display.py", line 89, in init
self.display = _BaseDisplay(display)
File "/home/cfernandes/.local/lib/python3.6/site-packages/Xlib/display.py", line 71, in init
protocol_display.Display.init(self, *args, **keys)
File "/home/cfernandes/.local/lib/python3.6/site-packages/Xlib/protocol/display.py", line 167, in init
raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": b'No protocol specified\n'

Can you provide some hint?

Best regards,
Carlos Fernandes

Cae crashes on startup

Hello, I am trying to use Cae on windows10.
I have anaconda installed with python 3.8.
I tried to start the application both from anaconda command line and from windows explorer.
in both cases, the application starts, both windows are displayed, but then the left window freezes or
shuts down after a few seconds.
The picture shows the state in which the application froze.

Kazunobu
cae_crash

FEM solver in detail (nodal force distribution)

Hi everyone! I am a little familiar with FEM and have recently simulated a simple model in freecad, in which a point force is applied on a metal part and I use calculix as solver. for a part of my research, I need to export a matrix from the FEM module, which might sound a bit strange to you!!

As far as I understood: in FEM we have: F=KD (Force Matrix, Stiffness and Displacement)
F is a matrix that represents Force for all nodes of the fem mesh. ( I think it is called nodal force distribution) this matrix should be calculated in the algorithm, and later, the K matrix will be made, to produce output D (displacement of nodes).

for some reason, I need the force vector which is applied on all nodes. (not the reaction force/ nor stress/ nor strain–> these are the outputs of FEM which I do not need!)

I thought F is made somewhere inside the code but unfortunately I could not find it inside the Freecad explicitly. I asked in FreeCAD Forum and they guided me to calculix developers.

so anyone can help me to find it?

(I asked the same question in :
https://calculix.discourse.group/t/nodal-force-distribution-matrix/675
but yet have not found the solution.)

thanks in advance

Integrated web browser for the documentation

Great package, thanks!
One qualm that I have with the latest version is that the documentation launches up in a different browser.

While I agree with the design decision of opening the model using cgx, I really liked the "integrated feel" of the previous version(s), especially for the documentation. I click on help and the window just expands with the documentation. Now however, there's some delay with opening it in an external viewer (browser).

Would it be possible to revert back to the previous design just for this?

Fail to start in Ubuntu 20.04 & Anaconda Env

Hello, I tried 'cae' package in my desktop, but I failed to start.

  • zsh, i3-gaps, Ubuntu 20.04 on VirtualBox
  • anaconda3-2020.02 in Pyenv
  • PyQt5 is installed as default

Response is like that :

$ sh cae.sh
Binary does not exist. Running source code.
cae.sh: 13: exec: /home/osboxes/Calculix/cae/src/cae.py: Permission denied
$ python3 ./src/cae.py
Please, install PyQt5 with command:
pip3 install PyQt5
$ pip3 install PyQt5
Requirement already satisfied: PyQt5 in ~/.pyenv/versions/anaconda3-2020.02/lib/python3.7/site-packages (5.15.0)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in ~/.pyenv/versions/anaconda3-2020.02/lib/python3.7/site-packages (from PyQt5) (12.8.0)

I cannot understand why...
Please check this, or
Let me know the environment in which it's running!

No slave window

I am new to Calculix, but I have previously used Abaqus. I read the Calculix documentation, and it stated that it supports Abaqus.inp files. But when I run my.inp file, I get this error. Please assist if you have encountered this problem before. Thank you.

INFO: /home/vignesh/cae/bin/cgx -c /home/vignesh/cae/examples/default.inp
ERROR: New slave window starts too slowly.
ERROR: Can not get slave wid.

paraview warp by vector

First, thanks a LOT for this package! This is amazing!

I just did a structural modal analysis (*frequency card), and wanted to view the results in paraview. However, on paraview, I'm not able to click on "warp by vector" as it seems to be hidden off.
Let me know if this is some issue with the ccx2paraview conversion or it can be fixed easily.

Here's a zip file with the input (_main.inp is the main file that has to be run) and its output in frd (_main.frd)
send.zip

Thanks,
Nidish

Simple bionic Matthek spline for simple bionic optimization of edges

Enhancement: Simple bionic Matthek spline for simple bionic optimization of edges

Prof. Matthek introduced this Method in last century.

with this resulting curve a good bionic design is possible by edges.
But mathematics should be done also in CAE for simple possible full use in engineering and arts by Freecad or others.

See this pdf for more information about Matthek‘s triangle method and more.
http://bibliothek.fzk.de/mattheck/mattheck_postersammlung.pdf

and in Detail

https://publikationen.bibliothek.kit.edu/220061912

Look in the pdf poster and you see the triangle method with 3 Triangles to construct spline points.
With this points a good edge curve is the result without FEM for beams, shells and solids or CFD for fluids.

there is a pdf Poster in german with stress Relation of matthek spline by triangles to circle arc .
https://publikationen.bibliothek.kit.edu/220076489

so an 80%-Optimization of edges with this bionic spline is here simple possible.

Humans are part of nature and our brains know: bionic curves are beautiful.

run cae.sh reminding of no module named ccx2paraview

Hi, I mount the required software including ccx2paraview. The ccx2paraview was installed again by python3. The issue in the title was solved. But the case window disappeared suddenly after runing cae.sh.

File "/cae/src/cae.py", line 105, in
i.import_file(start_model)
File "
/cae/src/importer.py", line 207, in import_file
self.m.Mesh = model.parsers.mesh.Mesh(blocks=self.keyword_blocks)
TypeError: init() got an unexpected keyword argument 'blocks'

So how to solve it?

problem with "umatht.f"

Dear Ihor,

thanks to this unique cae project! It helps me a lot in FEM simulations.
However, I got a problem with the "umatht.f", which doesn't work with cae 0.8.0. Here are my "umatht.f" file and ".inp" file
https://github.com/xyz01010101/FEM_Projects/blob/Calculix/umatht.f
https://github.com/xyz01010101/FEM_Projects/blob/Calculix/HeatTransferModel_3.inp

The "umatht.f" is very simple, which is just used for testing. I don't know why the model doesn't work. If I define the material properties directly in ".inp" file, everything is fine. But with "umatht.f", it doesn't work. I have complied ccx with the "umatht.f" file in cae. I have tested "umat.f" and it works with cae. But "umatht.f" doesn't work.

It would be very kind if you have time and could have a look at it. Thanks in advance!

Best regards,
Xingxing

ERROR, no matching file-type found

Hi, imirzov.
The problem that i posted here still exists. I'm sorry i have not seen your last reply and reply in time. I open this issue to gain your attenaion because former issue was closed. please go here , where i replied your question and gave more details.

Error while excuting cae.sh in ubuntu linux 22.04

getting the following error, kindly help

Traceback (most recent call last):
File "/home/ccx/cae/src/cae.py", line 39, in
import checks
File "/home/ccx/cae/src/checks.py", line 30, in
class Checks:
File "/home/ccx/cae/src/checks.py", line 33, in Checks
modules = subprocess.check_output(cmd)
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/ccx/cae/bin/python/bin/python3'

App exit - AttributeError: 'NoneType' object has no attribute 'wid'

INFO: C:\Users\ihor\Downloads\cae\bin\cgx.exe -c C:\Users\ihor\Downloads\cae\examples\default.inp
ERROR: New slave window starts too slowly.
ERROR: Can not get slave wid.
ERROR: Nothing to align - slave WID is None.
WARNING: No slave window.
WARNING: No slave window.
WARNING: No slave window.
INFO: Started in 11.3 seconds.

Traceback (most recent call last):
File "c:\Users\ihor\Downloads\cae\src\cae.py", line 97, in
wf.kill_slave()
File "c:\Users\ihor\Downloads\cae\src\gui\window.py", line 187, in kill_slave
ctypes.windll.user32.SetForegroundWindow(self.sw.info.wid)
AttributeError: 'NoneType' object has no attribute 'wid'

contact in the explicit solver

Hi there, thanks for supporting.

I have recently assembled an model with the beam-to-solid contact. The explicit solver seems produce unreasonable results that the energy raised to the INF level at some stage.

The load case is simple that

  1. the cellular body (consisting many beam elements) sits on top of bottom supporting plate
  2. the top loading plate moved downward to compress the cellular body. Top plate can only move in the vertical direction, and constraint by the imposed boundary conditions.
  3. the cellular has no other movement constraint, besides the contacts to the top and bottom plates.

I have attached zip files here, both the INP files and the results outputs. I do understand the the "beam" is not actual beam element, so the top and bottom plates were offset a bit (0.25mm) in order to accommodate the reproduced solids from the beams. The solver versions are 2.16 and 2.15.

I'd like to also confirm one thing, whether the "*tie " keywords were implemented for the explicit solver. I found it was not implemented.

Thank you!

Regards
ywan459

Contacts_Explicit.zip

Results_Cube_Tie_Explicit.zip

paint elsets doesn't work

Hello,imirzov! Thanks to your effort for this tool.
I'm new to calculix, when following your video tutorial, I didn't achieve the same result, i.e. when I opened CAE and clicked CGX-paint elsets, I didn't get the expected rendering results , the same for paint surfaces. Could you help me see what's the problem?
cae

Trying to install Calculix

Using Conda, I tried several installation channels with no success -- I'm using Python 3.7.

conda install -c conda-forge calculix
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • calculix

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Run cae.sh in another working directory

Hi Igor,

thank you for your AMAZING pre/postprocessor. Is it possible to run cae.sh from another working folder? Or should I rund it always from the ccx_cae folder?

DLL load failed while importing QtWebEngineWidgets

I can't get Calculix CAE working whatsoever. Might be blatantly clear to someone, but not to me.

I always get the following error message as shown:

[notice] A new release of pip is available: 23.1.2 -> 23.3
[notice] To update, run: C:\Users\drppo\Documents\cae_20230122_v0.9.1\bin\python\python.exe -m pip install --upgrade pip
STARTUP TESTS

INFO: Python version is 3.10.9.
INFO: CAE version is 0.9.1.
INFO: Default web browser is WindowsDefault.
INFO: PyQt5 OK
INFO: PyQtWebEngine OK
INFO: ccx2paraview OK
INFO: unv2ccx OK
INFO: numpy OK
INFO: vtk OK
Traceback (most recent call last):
File "C:\Users\drppo\Documents\cae_20230122_v0.9.1\src\cae.py", line 43, in
from PyQt5 import QtWidgets, QtWebEngineWidgets
ImportError: DLL load failed while importing QtWebEngineWidgets: The specified module could not be found.
Something went wrong.

Screenshot 2023-10-19 190813

Could you please shed some light on it?
Thanks

*include cards do not read relative paths.

As far as I can tell the *include cards do not read relative paths. It tries to read the included decks at the same path of the main inp file. If I have a mesh in ./mesh/mesh.msh, it tries to read it from ./mesh.msh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.