[MBDyn-users] Initial assembly related member functions of user defined elements are not called

Resch Reinhard Reinhard.RESCH at accomp.it
Mon Apr 2 10:37:45 CEST 2012

Dear Mr. Masarati,

It still does not work with "use: loadable elements, in assembly".

One needs the patch in the attached file in order to enable initial joint assembly for loadable elements.

Could you please check this patch for consistency with the rest of the code!

Best regards,

Reinhard Resch

-----Ursprüngliche Nachricht-----
Von: masarati at aero.polimi.it [mailto:masarati at aero.polimi.it]
Gesendet: Montag, 2. April 2012 09:52
An: Resch Reinhard
Cc: 'mbdyn-users at mbdyn.org'
Betreff: Re: [MBDyn-users] Initial assembly related member functions of user defined elements are not called

> Dear Mr. Masarati,
> When writing as user defined element one has to provide the following set
> of member functions:
>             virtual unsigned int iGetInitialNumDof(void) const;
>             virtual void
>             InitialWorkSpaceDim(integer* piNumRows, integer* piNumCols)
> const;
>             VariableSubMatrixHandler&
>             InitialAssJac(VariableSubMatrixHandler& WorkMat,
>                               const VectorHandler& XCurr);
>             SubVectorHandler&
>             InitialAssRes(SubVectorHandler& WorkVec, const VectorHandler&
> XCurr);
> But if you run a simulation with an user defined element, none of these
> member functions is called.
> Is it possible to enable the initial assembly phase for user defined
> elements?

As far as I remember, you need to explicitly enable their use in initial
assembly (since this phase was expressly intended for initial assembly of
joint elements).  I understand that user-defined elements can indeed play
the role of joints...  The syntax is

begin: control data;
    # ...
    use: loadable elements, in assembly;
    # ...
end: control data;


Cheers, p.

Le informazioni contenute in questo messaggio e negli eventuali allegati sono riservate e per uso esclusivo del destinatario. Persone diverse dallo  stesso non possono copiare o distribuire il messaggio a terzi. Chiunque riceva questo messaggio per errore, è pregato di distruggerlo e di informare immediatamente il mittente.

HINWEIS: Dies ist eine vertrauliche Nachricht und nur für den Adressaten bestimmt. Es ist nicht erlaubt, diese Nachricht zu kopieren oder Dritten zugänglich zu machen. Sollten Sie diese Nachricht irrtümlich erhalten haben, bitte ich um Ihre Mitteilung per E-Mail oder unter der oben angegebenen Telefonnummer.

The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Reinhard.Resch-enable-initial-joint-assembly-for-loadable-elements-2012-04-02.patch
Type: application/octet-stream
Size: 734 bytes
Desc: Reinhard.Resch-enable-initial-joint-assembly-for-loadable-elements-2012-04-02.patch
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20120402/56e132f7/attachment.obj>

More information about the MBDyn-users mailing list