Commit 10d065ac authored by Olivier Lantsoght's avatar Olivier Lantsoght

[Example] Update user model for pendulum spring 123

parent 05ac48aa
......@@ -56,22 +56,22 @@ void mbs_delete_user_model(UserModel* um)
int ind;
int ind_state_value = 1;
um->Spring.K = mbs_infos->user_models->user_model_list[0]->parameter_list[0]->value_list[0];
um->Spring.C = mbs_infos->user_models->user_model_list[0]->parameter_list[1]->value_list[0];
um->Spring.L0 = mbs_infos->user_models->user_model_list[0]->parameter_list[2]->value_list[0];
um->mylink.K = mbs_infos->user_models->user_model_list[1]->parameter_list[0]->value_list[0];
um->mylink.C = mbs_infos->user_models->user_model_list[1]->parameter_list[1]->value_list[0];
um->mylink.Z0 = mbs_infos->user_models->user_model_list[1]->parameter_list[2]->value_list[0];
um->Motor.Un = mbs_infos->user_models->user_model_list[2]->parameter_list[0]->value_list[0];
um->Motor.Rmot = mbs_infos->user_models->user_model_list[2]->parameter_list[1]->value_list[0];
um->Motor.kphi = mbs_infos->user_models->user_model_list[2]->parameter_list[2]->value_list[0];
um->Motor.L = mbs_infos->user_models->user_model_list[2]->parameter_list[3]->value_list[0];
um->Motor.rho = mbs_infos->user_models->user_model_list[2]->parameter_list[4]->value_list[0];
for(ind=0; ind<mbs_infos->user_models->user_model_list[2]->parameter_list[5]->n_value; ind++)
um->Spring.K = mbs_infos->user_models->user_model_list[0]->parameter_list[0]->value_list[1];
um->Spring.C = mbs_infos->user_models->user_model_list[0]->parameter_list[1]->value_list[1];
um->Spring.L0 = mbs_infos->user_models->user_model_list[0]->parameter_list[2]->value_list[1];
um->mylink.K = mbs_infos->user_models->user_model_list[1]->parameter_list[0]->value_list[1];
um->mylink.C = mbs_infos->user_models->user_model_list[1]->parameter_list[1]->value_list[1];
um->mylink.Z0 = mbs_infos->user_models->user_model_list[1]->parameter_list[2]->value_list[1];
um->Motor.Un = mbs_infos->user_models->user_model_list[2]->parameter_list[0]->value_list[1];
um->Motor.Rmot = mbs_infos->user_models->user_model_list[2]->parameter_list[1]->value_list[1];
um->Motor.kphi = mbs_infos->user_models->user_model_list[2]->parameter_list[2]->value_list[1];
um->Motor.L = mbs_infos->user_models->user_model_list[2]->parameter_list[3]->value_list[1];
um->Motor.rho = mbs_infos->user_models->user_model_list[2]->parameter_list[4]->value_list[1];
for(ind=1; ind<=mbs_infos->user_models->user_model_list[2]->parameter_list[5]->n_value; ind++)
{
um->Motor.i[ind+1] = ind_state_value;
um->Motor.i[ind] = ind_state_value;
ind_state_value++;
}
......
......@@ -56,22 +56,22 @@ void mbs_delete_user_model(UserModel* um)
int ind;
int ind_state_value = 1;
um->Spring.K = mbs_infos->user_models->user_model_list[0]->parameter_list[0]->value_list[0];
um->Spring.C = mbs_infos->user_models->user_model_list[0]->parameter_list[1]->value_list[0];
um->Spring.L0 = mbs_infos->user_models->user_model_list[0]->parameter_list[2]->value_list[0];
um->mylink.K = mbs_infos->user_models->user_model_list[1]->parameter_list[0]->value_list[0];
um->mylink.C = mbs_infos->user_models->user_model_list[1]->parameter_list[1]->value_list[0];
um->mylink.Z0 = mbs_infos->user_models->user_model_list[1]->parameter_list[2]->value_list[0];
um->Motor.Un = mbs_infos->user_models->user_model_list[2]->parameter_list[0]->value_list[0];
um->Motor.Rmot = mbs_infos->user_models->user_model_list[2]->parameter_list[1]->value_list[0];
um->Motor.kphi = mbs_infos->user_models->user_model_list[2]->parameter_list[2]->value_list[0];
um->Motor.L = mbs_infos->user_models->user_model_list[2]->parameter_list[3]->value_list[0];
um->Motor.rho = mbs_infos->user_models->user_model_list[2]->parameter_list[4]->value_list[0];
for(ind=0; ind<mbs_infos->user_models->user_model_list[2]->parameter_list[5]->n_value; ind++)
um->Spring.K = mbs_infos->user_models->user_model_list[0]->parameter_list[0]->value_list[1];
um->Spring.C = mbs_infos->user_models->user_model_list[0]->parameter_list[1]->value_list[1];
um->Spring.L0 = mbs_infos->user_models->user_model_list[0]->parameter_list[2]->value_list[1];
um->mylink.K = mbs_infos->user_models->user_model_list[1]->parameter_list[0]->value_list[1];
um->mylink.C = mbs_infos->user_models->user_model_list[1]->parameter_list[1]->value_list[1];
um->mylink.Z0 = mbs_infos->user_models->user_model_list[1]->parameter_list[2]->value_list[1];
um->Motor.Un = mbs_infos->user_models->user_model_list[2]->parameter_list[0]->value_list[1];
um->Motor.Rmot = mbs_infos->user_models->user_model_list[2]->parameter_list[1]->value_list[1];
um->Motor.kphi = mbs_infos->user_models->user_model_list[2]->parameter_list[2]->value_list[1];
um->Motor.L = mbs_infos->user_models->user_model_list[2]->parameter_list[3]->value_list[1];
um->Motor.rho = mbs_infos->user_models->user_model_list[2]->parameter_list[4]->value_list[1];
for(ind=1; ind<=mbs_infos->user_models->user_model_list[2]->parameter_list[5]->n_value; ind++)
{
um->Motor.i[ind+1] = ind_state_value;
um->Motor.i[ind] = ind_state_value;
ind_state_value++;
}
......
......@@ -56,22 +56,22 @@ void mbs_delete_user_model(UserModel* um)
int ind;
int ind_state_value = 1;
um->Spring.K = mbs_infos->user_models->user_model_list[0]->parameter_list[0]->value_list[0];
um->Spring.C = mbs_infos->user_models->user_model_list[0]->parameter_list[1]->value_list[0];
um->Spring.L0 = mbs_infos->user_models->user_model_list[0]->parameter_list[2]->value_list[0];
um->mylink.K = mbs_infos->user_models->user_model_list[1]->parameter_list[0]->value_list[0];
um->mylink.C = mbs_infos->user_models->user_model_list[1]->parameter_list[1]->value_list[0];
um->mylink.Z0 = mbs_infos->user_models->user_model_list[1]->parameter_list[2]->value_list[0];
um->Motor.Un = mbs_infos->user_models->user_model_list[2]->parameter_list[0]->value_list[0];
um->Motor.Rmot = mbs_infos->user_models->user_model_list[2]->parameter_list[1]->value_list[0];
um->Motor.kphi = mbs_infos->user_models->user_model_list[2]->parameter_list[2]->value_list[0];
um->Motor.L = mbs_infos->user_models->user_model_list[2]->parameter_list[3]->value_list[0];
um->Motor.rho = mbs_infos->user_models->user_model_list[2]->parameter_list[4]->value_list[0];
for(ind=0; ind<mbs_infos->user_models->user_model_list[2]->parameter_list[5]->n_value; ind++)
um->Spring.K = mbs_infos->user_models->user_model_list[0]->parameter_list[0]->value_list[1];
um->Spring.C = mbs_infos->user_models->user_model_list[0]->parameter_list[1]->value_list[1];
um->Spring.L0 = mbs_infos->user_models->user_model_list[0]->parameter_list[2]->value_list[1];
um->mylink.K = mbs_infos->user_models->user_model_list[1]->parameter_list[0]->value_list[1];
um->mylink.C = mbs_infos->user_models->user_model_list[1]->parameter_list[1]->value_list[1];
um->mylink.Z0 = mbs_infos->user_models->user_model_list[1]->parameter_list[2]->value_list[1];
um->Motor.Un = mbs_infos->user_models->user_model_list[2]->parameter_list[0]->value_list[1];
um->Motor.Rmot = mbs_infos->user_models->user_model_list[2]->parameter_list[1]->value_list[1];
um->Motor.kphi = mbs_infos->user_models->user_model_list[2]->parameter_list[2]->value_list[1];
um->Motor.L = mbs_infos->user_models->user_model_list[2]->parameter_list[3]->value_list[1];
um->Motor.rho = mbs_infos->user_models->user_model_list[2]->parameter_list[4]->value_list[1];
for(ind=1; ind<=mbs_infos->user_models->user_model_list[2]->parameter_list[5]->n_value; ind++)
{
um->Motor.i[ind+1] = ind_state_value;
um->Motor.i[ind] = ind_state_value;
ind_state_value++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment