Skip to content

Vectors in VEGA #13

@ThomasAbballe

Description

@ThomasAbballe

Hi all,

I recently added the support for the Nastran FORCE2 command. This command defines nodal force, by specifying four nodes N1, N2, N3, N4. The resulting force is parallel to the cross-product of vector(N1N2) with vector(N3N4). It was done by a ugly fix, as I copied/pasted/modified the NodalForceTwoNodes class into a NodalForceFourNodes.

Because Nastran has 3 ways (that I know of) to define a vector (explicitly, implicitly parallel to two points, and implicitly by cross-product), we have now 3 Abstract classes to modelize the same thing: a nodal force on a point. It doesn't seem right.

Maybe we should introduce a Vector object in Abstract Vega, or change the VectorialValues one, to encapsulate implicit vectors. Like many others, the Vector object would be "implicit" until the end of the reading, when he will be computed from the mesh. It would greatly simplify the NodalForce object, as we would have only one class for all.
As a consequence though, this Vector object would be linked to the Model class (or at least the Mesh ones), and that could/would mess the current hierarchy. I foresee quite a lot of work to do this...

Any thoughts on the subject ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions