Skip to content

Pre- and Postprocessing for CalculiX can be done with this component in coreform cubit. The results will be converted to Paraview (.frd and .dat: nodal, element and integration points results).

License

calculix/Cubit-CalculiX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cubit-CalculiX

Hey ho that´s the CalculiX Component for coreform cubit!

Full Model definitions for CalculiX can be done with Cubit as Preprocessor. After the run with CalculiX the results will be automatically converted for Paraview.

Here you can find the source code and a build for linux.

This component was build with Cubit 2024.3!

Tested with Cubit 2024.3 on Ubuntu 22.04

Key Features

Definition of:

  • Elements Sets

  • Node Sets

  • Side Sets

  • Materials (Conductivity, Density, Elastic, Expansion, Plastic, Specific Heat)

  • Sections (Solid, Shell, Membrane, Beam)

  • Constraints (Tie, Rigid Body)

  • Surface Interactions

  • Contact Pairs

  • Amplitudes

  • Loads (CLOAD, DLOAD, DFLUX, GRAVITY, CENTRIF)

  • Boundary Conditions (Displacements, Temperatures)

  • Initial Conditions (Displacements, Temperatures)

  • History Outputs (NODE PRINT, EL PRINT, CONTACT PRINT)

  • Field Outputs (NODE FILE, EL FILE, CONTACT FILE)

  • STEPS (Static, Frequency, Buckle, Heat Transfer, Coupled Temperature Displacement, Uncoupled Temperature Displacement, No Analysis)

  • Creation and Running of Jobs

  • Conversion of Results to Paraview (.frd and .dat: nodal, element and integration points results, auto calculating von Mises and Principal Stresses)

  • Projection of Displacements from .frd to mesh

  • Opening of Results with CGX or Paraview

  • Adding Customlines before/after Keywords

  • Export of Calculix Model

Installation

Download the build directory and point within Cubit to the Direcetory.

  • Tools->Plugins->Add

Restart Cubit.

Add Component

The Cubit Window should now show "Coreform Cubit 2022.4 -- with CalculiX" in the Title.

  • Tools->Options->CalculiX

Now you have to fill in the Paths to CCX, CGX, Paraview, ccx2paraview, the icons from the build and give a number for the wanted threads for the solver.

Restart Cubit.

Setup Options

Enable Model Tree

  • View->CalculiX Model Tree

Show Model Tree

Try to open and run the journal file "first_run.jou"

If everything works. It should compute a beam and automatically open the results with cgx and paraview.

After First Run

Postprocessing

After the run with CalculiX the results should be loaded and converted automatically. If a Job exited with errors you can try to convert it over the Button in the Job Monitor.

The mises stresses and strains will be precalculated for the S and E keys. If the preprocessing was done in cubit and the results can be linked. Then the data from the .frd and .dat can be viewed with paraview. When the linking fails, the .frd will be converted to vtu. In paraview you can see the linked and computed results with the multiblock inspector.

multiblock inspector

If integration point data was requested in the .dat, the converter computes the location of the integration points and links the results. The integration point number and the element id can be queried with paraview. The element id can be found in the cell data. The ip number in the point data.

integration points

elements id

ip number

When there are displacements in the frd file for requested blocks in the .dat. The displacements of the integration points will also be computed.

integration points displacements

current limitations of the converter:

  • totals ignored
  • buckling in .dat ignored
  • contact print card ignored
  • only links for complete nodal and element data

Projection of Displacements

with the command "ccx result project job 'job_id' {step 'step' | totalincrement 'totalincrement'} [scale 'scale']"

The displacements from an .frd can be scaled and projected to the nodes in cubit. It has to be .frd where the mesh is ident with the one in cubit. Otherwise linking fails and no projection will be done. If a step is choosen, it will project the last available increment with displacement data. When choosing the totalincrement the related displacements will be used.

projection of displacements

known issues

If you want to build the component yourself, i would recommend using ubuntu 22.04 . If some symbols are missing try another OS. It can happen that you've got a Cubit which was build on a different OS. For example building the component for Cubit 2022.4 only worked with centos 7.

todo list

  • documentation

About

Pre- and Postprocessing for CalculiX can be done with this component in coreform cubit. The results will be converted to Paraview (.frd and .dat: nodal, element and integration points results).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages