Source code for solving second order ODE/PDE using PINN

Hi
Can someone share the matlab source code for solving second order ODE of the type as below?
But, I am not sure how to input the IC of the form d/dx() in the code.
All help will be appreciated.
Thanks

回答 (1 件)

Torsten
Torsten 2024 年 8 月 18 日
移動済み: Torsten 2024 年 8 月 18 日

0 投票

Why do you want to use code for partial differential equations if you have an ordinary differential equation to solve ?
syms psi(x)
eqn = diff(psi,x,2)+0.2*diff(psi,x)+psi+0.2*exp(-0.2*x)*cos(x) == 0;
Dpsi = diff(psi,x);
conds = [psi(0)==0,Dpsi(0)==0];
simplify(dsolve(eqn,conds))
ans = 

3 件のコメント

Akhil Kumar
Akhil Kumar 2024 年 8 月 18 日
Hi
Thanks for the reply.
However, I am using Physics Aware Neural Network (PINN) for solving PDE/ODE.
A bit annoying how to introduce IC here.
Torsten
Torsten 2024 年 8 月 18 日
Yes, it's possible to open a bottle with a sledgehammer - but should we do it only because it's possible ?
Sam Chak
Sam Chak 2024 年 8 月 19 日
It is likely that the OP was given a research direction by his supervisor to start working on Physics-Informed Neural Networks (PINNs), as this is a trending AI topic that may enhance the chances of publication acceptance. If the results from the PINN approach are promising, the supervisor may then address more significant engineering problems.

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

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

製品

リリース

R2024a

タグ

質問済み:

2024 年 8 月 18 日

コメント済み:

2024 年 8 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by