hi every one i try to solve problem with ode15s that Mass matrix change per step how can i solve?

댓글 수: 2

Preethi
Preethi 2018년 10월 3일
hi,
can you elaborate
siroos jalilyan
siroos jalilyan 2018년 10월 3일
편집: siroos jalilyan 2018년 10월 3일

i try to solve

v=r*i1+L11*di1/dt+L12*di2/dt+L13*di3/dt;
v=r*i2+L21*di1/dt+L22*di2/dt+L23*di3/dt;
v=r*i3+L31*di1/dt+L32*di2/dt+L33*di3/dt

and L11 L12 ....... change in every step

댓글을 달려면 로그인하십시오.

 채택된 답변

Steven Lord
Steven Lord 2018년 10월 3일

1 개 추천

Use odeset to create an options structure where the 'Mass' option is set to a function handle. Take a look at the batonode example, which defines a Mass function that generates a state-dependent mass matrix, or the fem1ode example if your mass matrix is going to depend only upon time and not the state.

추가 답변 (0개)

카테고리

질문:

2018년 10월 3일

편집:

2018년 10월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by