How do i write the code for navierstokes equation in matlab/comsol?
11 次查看(过去 30 天)
显示 更早的评论
The idea is to write the code for the navierstokes equation with the laplacian velocity and pressure term
1 个评论
KSSV
2018-5-10
You want it in comsol? So this is not the forum. You want in MATLAB? What have you attempted?
回答(4 个)
Precise Simulation
2018-5-10
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!