export stiffness matrix without starting simulation

General discussion about Elmer
Post Reply
Stefan Hiemer
Posts: 6
Joined: 16 Sep 2023, 03:52
Antispam: Yes

export stiffness matrix without starting simulation

Post by Stefan Hiemer »

Hi everyone,

I need to export the global stiffness matrix without boundary conditions for beam networks for some research project, but I am not interested in the actual simulation.
1. I can already export what I desire (see attached), but how can I stop Elmer from starting the simulation?
2. I assume the global stiffness matrix is given in the global coordinate system and since I export it for beams the degrees of freedom are ordered for each node like this: displacement in x,y,z, moments due to torsion/bending around x,y,z. Correct?

Thanks and regards
Stefan
Attachments
triangle.msh
(443 Bytes) Downloaded 5 times
export_stiffness_matrix.sif
(2.49 KiB) Downloaded 9 times
kevinarden
Posts: 2316
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: export stiffness matrix without starting simulation

Post by kevinarden »

You could just kill the process after it starts or try to use the solver control

Execute Solver = Never

there are lots of option such as always, after simulation, before simulation, never, ...
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: export stiffness matrix without starting simulation

Post by raback »

Hi,

If the solver is never executed there will unfortunately be no stiffness matrix. You could however, try this keyword in Solver section:

Code: Select all

Linear System Solver Disabled = Logical True
There might be other ways, like setting linear system iterations to zero etc. but this one should be clean. Codewise it is DefUtils.F90 line ~3519. Had to check it up since this is rarely used.

-Peter
Stefan Hiemer
Posts: 6
Joined: 16 Sep 2023, 03:52
Antispam: Yes

Re: export stiffness matrix without starting simulation

Post by Stefan Hiemer »

@Peter Thanks. That's what I was looking for.
Post Reply