Hi there!
I am trying to visualise spring elements (ChElementSpring) on irrlicht app, but it has been quite impossible for me. I found some examples and I could replicate them and visualise some links as springs (ChLinkTSDA), but it is not what I need because this kind of links need two bodies to be created, and that is so inefficient for my model. I was looking for a way to visualise the spring created between two nodes, my system is currently working. For simple models is possible to understand what is happening just with the representation of the nodes as dots, but if I want to make it more complex, will be so much easier to comprehend if I can see the springs on the irrlicht app. On my script, first of all, I create some nodes and elements: // Upper: auto nodeA = chrono_types::make_shared<ChNodeFEAxyz>(ChVector<>(0, Ly, 0)); nodeA->SetMass(m); mesh->AddNode(nodeA); // Right: auto nodeB = chrono_types::make_shared<ChNodeFEAxyz>(ChVector<>(Lx, 0, 0)); nodeB->SetMass(m); mesh->AddNode(nodeB); (…) // Upper-Right auto springAB = chrono_types::make_shared<ChElementSpring>(); springAB->SetNodes(nodeA, nodeB); springAB->SetSpringK(K); springAB->SetDamperR(0); mesh->AddElement(springAB); Then I represent the nodes as dots, as you can see in the following code: auto visGlyph = chrono_types::make_shared<ChVisualizationFEAmesh>(*(mesh.get())); visGlyph->SetFEMglyphType(ChVisualizationFEAmesh::E_GLYPH_NODE_DOT_POS); visGlyph->SetFEMdataType(ChVisualizationFEAmesh::E_PLOT_NONE); visGlyph->SetSymbolsThickness(0.02); mesh->AddAsset(visGlyph); I also tried to represent the springs, as I did it before for other kind of elements (for example with ChBeamEulerAdvance) but I do not know how to configurate them. Is there any option or function to do it? I do not need something complex, with a simple line is enough. Thanks! Fran -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/e5a30dc1-37ed-4d2e-b0e9-607c9186279fn%40googlegroups.com.
