Skip to content

Commit

Permalink
Update to latest Chrono API
Browse files Browse the repository at this point in the history
  • Loading branch information
rserban committed Feb 17, 2025
1 parent 9dcf3de commit 632fea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/cosimulation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Chrono::PardisoMKL and Chrono::OpenGL
#=============================================================================

message("\n---- VEHICLE COSIMULATION projects")
message(STATUS "\n---- VEHICLE COSIMULATION projects\n")

#--------------------------------------------------------------
# Find the Chrono package with required components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ int main(int argc, char* argv[]) {
// Use the AddFacesFromBoundary() to select automatically the outer skin of the tetrahedron mesh:
auto mcontactsurf = chrono_types::make_shared<ChContactSurfaceMesh>(mysurfmaterial);
my_mesh->AddContactSurface(mcontactsurf);
mcontactsurf->AddFacesFromBoundary();
mcontactsurf->AddFacesFromBoundary(*my_mesh);

/// Create a mesh load for cosimulation, acting on the contact surface above
/// (forces on nodes will be computed by an external procedure)
Expand All @@ -158,7 +158,7 @@ int main(int argc, char* argv[]) {
// This will automatically update a triangle mesh (a ChVisualShapeTriangleMesh
// asset that is internally managed) by setting proper
// coordinates and vertex colours as in the FEM elements.
auto mvisualizemesh = chrono_types::make_shared<ChVisualShapeFEA>(my_mesh);
auto mvisualizemesh = chrono_types::make_shared<ChVisualShapeFEA>();
mvisualizemesh->SetFEMdataType(ChVisualShapeFEA::DataType::NODE_SPEED_NORM);
mvisualizemesh->SetColorscaleMinMax(0.0, 10);
mvisualizemesh->SetSmoothFaces(true);
Expand Down

0 comments on commit 632fea3

Please sign in to comment.