Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


CalculiX generate the substructure stiffness matrix

CalculiX generate the substructure stiffness matrix

CalculiX generate the substructure stiffness matrix

Hello everyone
recently I'm trying to use Calculix to generate the substructure stiffness matrix. But I don't know how to control the output directory of the mtx file.

Then I read the source code file ccx_2.10.c and notice there is a parameter about the output file. just post the code as follow
if(strcmp1(argv[i],"-o")==0) {
but when I try to use the -o parameter with ccx.exe, it doesn't show any different with or without using output parameter.

Another problem I encountered is about element stiffness matrix output problem, since there isn't an example for users.

Thanks for any help!

RE: CalculiX generate the substructure stiffness matrix

Can you not put a path in the FILE NAME parameter of *SUBSTRUCTURE MATRIX OUTPUT?

You'll probably have more luck asking on the CalculiX forum where the programmer sometimes answers questions: https://groups.yahoo.com/neo/groups/CALCULIX/conve...

RE: CalculiX generate the substructure stiffness matrix

Hello, whitwas!
I already tried, it works. And I also write a bat file to cd to the inp directory, and the output file would be created in the same path.

Another problem is, why the stiffness matrix generated by CalculiX is different from the one generated by Abaqus with the same inp file?
Can anyone help me to figure out which one is correct.


RE: CalculiX generate the substructure stiffness matrix

There's no reason to expect different programs to produce the same stiffness matrix. They might order the DOFs differently, use different element formulations or even scale some values differently. In this case, since you have 2-node beams, CCX expands them to 8 node hex elements with no rotational DOFs. It might also insert constraint equations to join them if they're not in a straight line. Abaqus probably does it in the more traditional way with rotational DOFs that would look completely different.

To test if it's correct, it's probably easiest to solve it and see if you get the correct displacements - not forgetting to check for mesh convergence.

RE: CalculiX generate the substructure stiffness matrix

I didn't expect totally exact the same results, but the two results are totally different things.
I recover these two output mtx files. The data structure are different.
Calculix result

Abaqus result

I choose to believe abaqus result, and there may be some software bugs in ccx, or I used ccx with a wrong way.
The stiffness matrix is attached as below.

RE: CalculiX generate the substructure stiffness matrix

I also tested the S4R element to export stiffness matrix, but seem like calculix gives the wrong answer.

RE: CalculiX generate the substructure stiffness matrix

Yea that is suspicious. In CCX's matrix, the displacement DOFs in each row don't sum to zero which seems to indicate there's some constraint to ground when there shouldn't be. For Abaqus's matrix they do sum to zero.

There have been bugs with beams and shells in CCX related to the way it converts them to solids internally. If anything was going to work right, it would be solid elements.

RE: CalculiX generate the substructure stiffness matrix

I read the ccx USER’S MANUAL, and the beam or shell elements are expanded into solid elements. For example, "S4 and S4R four-node shell elements are expanded into three dimensional C3D8I and C3D8R elements, respectively. "
What I need, is the original shell element and exporting the stiffness matrix for the another application to use.
So if there isn't a recovering progress, the directly exported stiffness matrix would not suitable for my using case.

Does anyone has a solution for my trouble, or substitute scheme?


RE: CalculiX generate the substructure stiffness matrix

Do you want the complete stiffness matrix or just a few nodes to use it as a superelement? For the complete matrix, my software Mecway (see Google) can do that using traditional 5 DOF shell elements. It can also import a mesh in .inp format. The matrix file format is a row,column,value triple on each line. It's not sorted by node number so it also outputs a mapping between the matrix row numbers and node numbers.

RE: CalculiX generate the substructure stiffness matrix

Thank you

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


White Paper - The Evolving Landscape of Commercial Battery-Powered Trucks
What’s driving the evolving landscape of truck electrification? What are the barriers, motivators and strategies for accelerating the electric transition? What insights and resources are available for today’s design engineers working to achieve industry disruption and evolution? For answers to these and other pertinent questions, read this white paper. Download Now
eBook - Rethink Your PLM
A lot has changed since the 90s. You don't surf the Web using dial-up anymore, so why are you still using a legacy PLM solution that's blocking your ability to innovate? To develop and launch products today, you need a flexible, cloud-based PLM, not a solution that's stuck in the past. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close