Skip to content

Commit

Permalink
🐛 surface support motion displacement
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Pellegrino committed Sep 3, 2024
1 parent c988d13 commit adcf67c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ protected override void SolveInstance(IGH_DataAccess DA)
}
}

if (displacements.Count != 1 && displacements.Count != 3)
{
throw new ArgumentException("`displacements` must contain 1 or 3 items.");
}


// Convert geometry
FemDesign.Geometry.Region region = surface.FromRhino();
Expand All @@ -94,7 +99,7 @@ protected override void SolveInstance(IGH_DataAccess DA)
}
else if(loadLocationValues.Count == 1 || loadLocationValues.Count == 0)
{
obj = FemDesign.Loads.SurfaceSupportMotion.Uniform(region, direction, loadCase, comment);
obj = FemDesign.Loads.SurfaceSupportMotion.Uniform(region, displacements[0].FromRhino(), loadCase, comment);
}


Expand Down

0 comments on commit adcf67c

Please sign in to comment.