Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify the velocity in wall boundary condition in a general form. #655

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ void EulerianIntegration1stHalf<Contact<Wall>, RiemannSolverType>::interaction(s
{
StdLargeVec<Vecd> &n_k = *(wall_n_[k]);
StdLargeVec<Real> &Vol_k = *(wall_Vol_[k]);
StdLargeVec<Vecd> &vel_ave_k = *(wall_vel_ave_[k]);
Neighborhood &wall_neighborhood = (*contact_configuration_[k])[index_i];
for (size_t n = 0; n != wall_neighborhood.current_size_; ++n)
{
size_t index_j = wall_neighborhood.j_[n];
Vecd &e_ij = wall_neighborhood.e_ij_[n];
Real dW_ijV_j = wall_neighborhood.dW_ij_[n] * Vol_k[index_j];

Vecd vel_in_wall = -state_i.vel_;
Vecd vel_in_wall = 2.0 * vel_ave_k[index_j] - state_i.vel_;
Real p_in_wall = state_i.p_;
Real rho_in_wall = state_i.rho_;
FluidStateIn state_j(rho_in_wall, vel_in_wall, p_in_wall);
Expand Down Expand Up @@ -132,14 +133,15 @@ void EulerianIntegration2ndHalf<Contact<Wall>, RiemannSolverType>::interaction(s
{
StdLargeVec<Vecd> &n_k = *(this->wall_n_[k]);
StdLargeVec<Real> &Vol_k = *(this->wall_Vol_[k]);
StdLargeVec<Vecd> &vel_ave_k = *(wall_vel_ave_[k]);
Neighborhood &wall_neighborhood = (*contact_configuration_[k])[index_i];
for (size_t n = 0; n != wall_neighborhood.current_size_; ++n)
{
size_t index_j = wall_neighborhood.j_[n];
Vecd &e_ij = wall_neighborhood.e_ij_[n];
Real dW_ijV_j = wall_neighborhood.dW_ij_[n] * Vol_k[index_j];

Vecd vel_in_wall = -state_i.vel_;
Vecd vel_in_wall = 2.0 * vel_ave_k[index_j] - state_i.vel_;
Real p_in_wall = state_i.p_;
Real rho_in_wall = state_i.rho_;

Expand Down
Loading