View source: R/strength_update_handsfield_osim.R
strength_update_handsfield_osim | R Documentation |
This function updates the muscle strength of a scaled OpenSim model based on a reference model using the Handsfield scaling method. It calculates new muscle properties and can save the modified model to a file or return the updated model object.
strength_update_handsfield_osim(
model_scaled_file = "Baseline_scaled.osim",
model_ref_file = "Baseline_markers.osim",
model_output_file = "Model_updated.osim",
write_file = TRUE,
return_object = FALSE,
scale_factor
)
model_scaled_file |
A string specifying the path to the scaled OpenSim model file (default is "Baseline_scaled.osim"). |
model_ref_file |
A string specifying the path to the reference OpenSim model file (default is "Baseline_markers.osim"). |
model_output_file |
A string specifying the path for the output updated OpenSim model file (default is "Model_updated.osim"). |
write_file |
A logical value indicating whether to write the updated model to a file (default is TRUE). |
return_object |
A logical value indicating whether to return the updated model object (default is FALSE). |
scale_factor |
A numeric value indicating the scaling factor for muscle volume. |
If 'return_object' is TRUE, returns the modified OpenSim model object; otherwise, NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.