Repository navigation
Replies: 2 comments 1 reply
|
Its been almost 10 years since we added it. How about you give it a try? If it fails you can ask an AI to debug it, I made good experiences with this. |
0 replies
|
hi, by design it is not possible to add variables on the flight. there are good reasons for this, but the most important is that views of variables become broken, let me mention here the @KratosMultiphysics/technical-committee in case some else would like to give his view |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all.
During our development in the geomechanics application, we have had some issues with the AddNodalSolutionStepVariable function in the
ModelPartclass (see also the snippet below):In geomechanics applications, we often use multi-stage analyses, where sometimes nodal solution step variables are only necessary in a later stage. This could be due to the installation of certain structural elements in later stages, or extrapolation of variables to nodes for variables we only want to output in later stages.
However, at this moment, the
AddNodalSolutionStepVariableprevents adding solution step variables if the ModelPart (or its root if it exists) already has nodes.Since for us it would be a very convenient feature and solve quite some issues on our side to be able to add variables while a calculation is running, we'd like to understand why this check prevents a memory leak as described in the comment and if there would be any way to circumvent the memory leak and still be able to add variables after adding nodes to a ModelPart.
Curious for your inputs!
FYI @philbucher, @roigcarlo, @avdg81
All reactions