CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Adding momentum source term to BC Fluid Interface Boundary Condition (https://www.cfd-online.com/Forums/su2/248090-adding-momentum-source-term-bc-fluid-interface-boundary-condition.html)

safa_dmnl February 23, 2023 07:52

Adding momentum source term to BC Fluid Interface Boundary Condition
 
Hi everyone,


I want to add momentum source term to BC Fluid Interface Boundary Condition. So, i have changed line in CFVMFlowSolverBase.inl line: 1441 - Version: SU2-7.3.1.


for (iVar = 0; iVar < nVar; iVar++)
{
Residual[iVar] += weight * (residual[iVar] + tmp_residual(iVar]);

}


where tmp_residual stores my source term.

However, no matter how large i set the source term, nothing changes in the flow field. Am i doing something wrong or is my source term not dominant enough?

pcg February 25, 2023 20:26

That should be correct, have you tried comparing your source term with the normal residual?


All times are GMT -4. The time now is 11:55.