Hello Anybody,
My name is Lin, and I’m a researcher at The Hong Kong Polytechnic University. I’m trying to simulate muscle fatigue by making the muscle strength parameter (F0) decrease over time following a predefined curve..
I tried in a simple model by directly writing F0=1000-t, but the model cannot load and I get:
From the forum I learned that AnyFunExMonoPy could be used.
So I wrote a simple Python function in f0_function.py:

And made change in AnyScript. Unfortunately, this still gives me an error:
Anybody also provides built-in fatigue models (AnyFatigueModelM and AnyFatigueModel3CM), but they don’t allow me to impose a specific fatigue curve.
When I try to add time as a parameter, I still nit work.
Question: What is the correct way to make F0 time-dependent in Anybody? Ideally, I’d like to prescribe a custom function of time to represent fatigue.
Any hints, explanations, or sample code would be greatly appreciated. If anyone could kindly point me in the right direction, I would be truly grateful.
Lin

