Finite Element solution to the 2nd Order Diff Equation with difussion and convection terms only
au'(x)+bu"(x)=0 for 0<=x<=d
BC: u(0)=0 and u(d)=h
Example:
Finding an approximate solution to the following BVP using 16 elements of equal length.
u'(x)-u"(x)=0 : 0<=x<=1
BC: u(0)=0 and u(1)=1
Solution:
>> Galerkin(16,1,-1,1,1)
The result includes the plots as shown in the screenshot and the displacement and error matrix.
Citation pour cette source
Dr. Redmond Ramin Shamshiri (2024). Finite Element solution to the 2nd Order Diff Equation with difussion and convection terms only (https://www.mathworks.com/matlabcentral/fileexchange/25696-finite-element-solution-to-the-2nd-order-diff-equation-with-difussion-and-convection-terms-only), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |