필터 지우기
필터 지우기

trying to identify the propagation

조회 수: 3 (최근 30일)
Bruce Griffin
Bruce Griffin 2022년 5월 3일
답변: Divit 2023년 12월 22일
I have the following code. I am graphing a wave as z distance away from the origin in time. As time goes on the wave propegates forward. Im trying to identify the factor that propegates the wave forward. My goal is to make the wave approach origin as time goes on
for t=1:length(step)
upsilon=sqrt(3*((1-nu)/(1+nu))*(B/row));
expansion=exp(-z/zeta).*(1-.5.*exp(-upsilon.*step(t)/zeta))-.5.*exp(-abs(z-upsilon.*step(t))/zeta).*sign(z-upsilon.*step(t));
eta=(1-R)*((Q*Beta)/(A*zeta*C))*((1+nu)/(1-nu))*expansion;

답변 (1개)

Divit
Divit 2023년 12월 22일
Hi Bruce,
The code snippet you've provided is a MATLAB script that calculates the propagation of a wave as a function of time and distance from the origin. The wave's behavior is determined by several physical parameters and the expression used to calculate the variable expansion.
The factor that seems to be responsible for the propagation of the wave is "upsilon", which is multiplied by the time step "step(t)" within the "expansion" expression.
The term "exp(-abs(z-upsilon.*step(t))/zeta)" suggests that as"t" increases, the location where the wave has significant amplitude moves with velocity "upsilon". If you want the wave to approach the origin as time goes on, you would need to modify the expression so that the position of the wave's peak amplitude decreases with time.
If "upsilon" is positive and you want the wave to move towards the origin, you might need to adjust the terms involving "z-upsilon.*step(t)" to reflect the opposite direction of movement. This could involve negating "upsilon" or changing the way it interacts "z" and "step(t)". However, this change would need to be consistent with the physical model you are using.
Please ensure that any modifications you make to the code align with the physics of the problem you're trying to solve.
Hope it helps!

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by