Closed zhangzhen117 closed 1 year ago
Taking an example of momentum_x, I think the following term is missing in the implementation, which is consistent of the above comment in the 2D case.
The implementation might be changed like this;
self.equations["momentum_x"] = (
(rho * u).diff(t)
+ (
u * ((rho * u).diff(x))
+ v * ((rho * u).diff(y))
+ w * ((rho * u).diff(z))
+ rho * u * (curl)
)
+ p.diff(x)
- (-2 / 3 * mu * (curl)).diff(x)
- (mu * u.diff(x)).diff(x)
- (mu * u.diff(y)).diff(y)
- (mu * u.diff(z)).diff(z)
- (mu * (curl).diff(x))
# missing terms
- mu.diff(x) * u.diff(x)
- mu.diff(y) * v.diff(x)
- mu.diff(z) * w.diff(x)
)
I can open a pull request if I am correct.
Yes, I think you are correct.
Thank you. I opened a PR.
Thanks for the issue report and the PR. The team is looking into it and will get back soon.
Hi, there is a term missed in the Navier-Stokes equation, i.e. mux_j*u_jx_i for the i th momentum equation.