필터 지우기
필터 지우기

How to apply boundary condition on nodes using recommended workflow of PDE Toolbox?

조회 수: 3 (최근 30일)
Aditi
Aditi 2018년 1월 27일
댓글: Aditi 2018년 1월 31일
Can we use a function handle to applyBoundaryCondition on region type "Nodes"?
If not, is there any other way of apply boundary conditions on edge nodes using recommended workflow of PDE Toolbox?

답변 (1개)

Ravi Kumar
Ravi Kumar 2018년 1월 29일
Hi Aditi,
It is currently not possible to apply BC onto Nodes directly. Can you provide a bit more details on your use case, with example code, to see if there is a workaround to achieve the end goal.
Regards, Ravi
  댓글 수: 1
Aditi
Aditi 2018년 1월 31일
My problem is related to applying boundary condition on nodes, and the boundary condition value is dependent on value of parameter a.My code is :
if a>2
BC = @(region,state) [(state.u(1,:)-E_0a)+state.u(2,:).*(E_0c-state.u(1,:));...
-state.u(2,:).*(E_0c-state.u(1,:))];
else
BC = @(region,state) [state.u(2,:).*(E_0c-state.u(1,:));...
-state.u(2,:).*(E_0c-state.u(1,:))];
end
applyBoundaryCondition(model,'neumann','Edge',5:20,'g',BC,'Vectorized','off');
I need to define value of boundary condition at nodes for which a parameter is known. For example, if for node 2, if a > 2, then apply boundary condition 1 on that node, and boundary condition 2 for rest of the nodes.
Is there any way to do this using recommended workflo of PDE Toolbox?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by