How can I solve the equation of curvature on PDE Toolbox?

조회 수: 1 (최근 30일)
Sarojeet Deb
Sarojeet Deb 2017년 10월 25일
댓글: Precise Simulation 2017년 10월 31일
The equation is ∇n̂=2*curvature, Curvature is a constant
n̂ = ∇f/∥∇f∥ (Unit normal)
Here f is f(x,y)
I made the geometry in PDE Toolbox, meshed it and inputted the values in PDE Toolbox. But I am unable to input ∥∇f∥. I want to be ||∇f||= sqrt(x^2+y^2+u^2)

답변 (1개)

Precise Simulation
Precise Simulation 2017년 10월 26일
편집: Precise Simulation 2017년 10월 29일
∥∇f∥ should typically be sqrt(fx^2+fy^2+eps) where eps is a small constant to avoid divisions by zeros (since ∥∇f∥ is in the denominator). As this look like a Hamilton-Jacobi distance function problem another approach would be to transform the equation to a time dependent one, which should be somewhat easier to solve.
  댓글 수: 2
Sarojeet Deb
Sarojeet Deb 2017년 10월 30일
Shouldn't it be sqrt(ux^2+uy^2+eps) instead?
Precise Simulation
Precise Simulation 2017년 10월 31일
Yes, if your function 'f' is labelled 'u' in the pde implementation.

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

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by