How do i write the code for navierstokes equation in matlab/comsol?

The idea is to write the code for the navierstokes equation with the laplacian velocity and pressure term

댓글 수: 1

You want it in comsol? So this is not the forum. You want in MATLAB? What have you attempted?

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

답변 (4개)

The incompressible Navier-Stokes equations is also available as a built-in pre-defined Navier-Stokes physics mode in the FEATool FEM Matlab toolbox. In this case the equations are in 2D defined as
rho_ns*u' - miu_ns*(2*ux_x + uy_y + vx_y) + rho_ns*(u*ux_t + v*uy_t) + p_x = Fx_ns
rho_ns*v' - miu_ns*(vx_x + uy_x + 2*vy_y) + rho_ns*(u*vx_t + v*vy_t) + p_y = Fy_ns
ux_t + vy_t = 0
the Navier-Stokes equations in axisymmetry (2D cylindrical coordinates) and 3D are defined similarly.
Bartholomew Osegbe
Bartholomew Osegbe 2018년 5월 10일

0 개 추천

I have attempted the weak method fem.equ.weak = { ... { ... {'(-eta*ux)*test(ux)+(-eta*uy)*test(uy)-test(u)*px'} ... {'(-eta*vx)*test(vx)+(-eta*vy)*test(vy)-test(v)*py'} ... {'-test(px)*u-test(py)*v'} ... } ... }; but I have errors and when I sourced online I found a code that uses the poisson equation but just wanted a simple code with a laplacian velocity and pressure term.
Bartholomew Osegbe
Bartholomew Osegbe 2018년 5월 13일

0 개 추천

Thank you all for your answers, I do appreciate it.

카테고리

도움말 센터File Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2018년 5월 10일

답변:

2018년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by