-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vectors in VEGA #13
Comments
Hi Thomas, |
Hi msiavelis, and thanks for your answer. I know that the solution I provided works. I didn't think of it then, but, as you point out, this addition is transparent from the writer point of view, so it's a good point in its favour. My concern are more philosophical than practical. It seems to me that the Abstract classes are here to provide a generic modelization of the various parts of the model. They are the "physic" and "mathematic" objects, and should not depend of the used format (Nastran, Systus, etc) As I seem to be the only one working on VEGA at this time, and am only interested on Nastran To Systus translation, it is kind of a moot point, i know. But, he, it's still worth noting here ;) Cheers |
Hi Thomas, I can probably tell you some more about Vega, this could help you choose:
Very often I find out that even if the two ways of programmings can get you to the expected result, only one of them can give you the "X-to-X" conversion. So I use the "Value" hierarchy when I really have a different value in a keyword, but I use a different Abstract subclass when I have a different keyword, even if a smarter Value class could handle the case. There are at least three good reasons to have a "X-to-X" conversion :
Based on some meetings this week, we could add other output languages next year, so I really appreciate both you work and your way of thinking! :-) Cheers |
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 ?
The text was updated successfully, but these errors were encountered: