Skip to content

Commit

Permalink
modify the velocity in wall boundary condition in a general form.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhentong wang committed Sep 11, 2024
1 parent 129179c commit c75ceb2
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit c75ceb2

Please sign in to comment.