[MPM] Compute sum reactions for a given model part#14149
[MPM] Compute sum reactions for a given model part#14149ncrescenzio wants to merge 29 commits intomasterfrom
Conversation
…rocess for writing the reactions in a file
|
sorry @roigcarlo can you help me to understand why windows is failing? Unfortunately i do not have a windows machine, so i cannot try to compile it locally (and in any case i have no idea why it is not compiling). This is the error Thanks |
|
@ncrescenzio I've been looking at the code and I see nothing wrong. Please let me check it tomorrow morining :/. If you want to try something in the meantime, the only thing that smells to me right now is the interaction between a static method only class and the |
|
There were some problems, I directly fixed them because they do not involved any physics. Mainly the issue was that you were including This was causing the "core" to compile correctly, but the interface trying to compile again de definitions instead of importing them using decorator in the declaration, hance incosistent linkage. I've changed the cpp -> h includes, but that arose some unexposed symbols from Hope it compiles now! |
|
ahh i copied and pasted the last line in the "#include" section and didn’t noticed the extension was wrong… sorry to have bothered you, thanks a lot!!! @roigcarlo |
📝 Description
This PR introduces two new output processes for writing total reaction forces to file:
MPMGridConformingReactionOutputProcess: sums the nodalREACTIONvalues across a given model part and writes the total to a file at each output step.MPMNonConformingReactionOutputProcess: sums theMPC_CONTACT_FORCEvalues across the material point conditions of a given model part and writes the total to a file at each output step.MPMReactionOutputProcess) that handles file I/O and time-stepping logic, while each subclass provides the specific summation strategy.🆕 Changelog
ReactionUtilitiesfor summingREACTIONacross nodes orMPC_CONTACT_FORCEacross material point conditions of a given model part.test_reaction_utilities.cpp).MPMReactionOutputProcess: base class handling file output and output control.MPMGridConformingReactionOutputProcess: grid-conforming specialization (nodal reactions).MPMNonConformingReactionOutputProcess: non-conforming specialization (material point contact forces).test_mpm_reaction_output_process.pycovering both conforming and non-conforming output processes.