Replies: 2 comments
-
I won't review the attached file. To compute the gradient of a vector valued
suffice? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, Dear prof. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am interested to add turbulence models in the NS solver. As the first step, the velocity gradient tensor needs to be calculated. I did the following:
Step 1: added
std::vector<ParGridFunction> du_gf
in the naver_solver class, and initialized usingdu_gf.resize(vfes->GetVDim());
for (auto it = du_gf.begin(); it != du_gf.end(); it++)
it->SetSpace(vfes);
Step 2: "Hijacked" ComputeCurl3D and made it a new function like this:
void NavierSolver::ComputeGrad3D(ParGridFunction &u, std::vector<ParGridFunction> &du)
The navier_solver.hpp navier_solver.cpp are attached here.
navier_solver.zip
Beta Was this translation helpful? Give feedback.
All reactions