필터 지우기
필터 지우기

sinusoidal time dependent boundary condition - pde toolbox

조회 수: 2 (최근 30일)
yonatan s
yonatan s 2017년 6월 21일
댓글: yonatan s 2017년 6월 23일
hello,
i would like to have a sinusoidal time dependent BC. i didnt find an example of this in the related docs.
this is the relevant part of the code
tlist=0:30:360;
Flux= @(region,state) sin(2*pi*state.time)*F
b=applyBoundaryCondition(model,'neumann','Face',1,'q',0,'g',Flux,'Vectorized','on');
i want the bc to osicllate with time period of 30. is this the correct way of doing this?
thank you.

채택된 답변

Alan Weiss
Alan Weiss 2017년 6월 21일
Depending on your software version, that looks correct. The relevant documentation is here. But, if you are hoping to calculate the sin of something in degrees (not radians), use the sind function instead of sin.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
yonatan s
yonatan s 2017년 6월 23일
i have another question about this topic. my solution matrix is of vectors with the solutions at time (2pi*t), which will always be zero for my time periods (t=30,60,90..), so how could i see any oscillations?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Boundary Conditions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by