PDEToolbox + Passing own parameters to the function defining geometry

7 ビュー (過去 30 日間)
tri stan
tri stan 2017 年 10 月 24 日
コメント済み: tri stan 2017 年 10 月 25 日
I'm using PDE toolbox to solve some 2D PDE. The geometry is generated by function which is standarized and should have two parameters:
function [x,y]= @geometryFunction(bs,s)
and which is then passed to geometryFromEdges function:
geometryFromEdges(pdemodel,@geometryFunction) ;
I would like to pass additional parameters to the geometryFunction to have it more robust. The only way I can achieve it now is by using global variables (in the main file and in geometryFunction), which is not very convenient and elegant solution. Is there any other way for passing own parameters to the function that defines geometry?

採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 24 日
  1 件のコメント
tri stan
tri stan 2017 年 10 月 25 日
Shame on me. Thanks for recalling me this topic.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by