Skip to content
Snippets Groups Projects
Verified Commit 9a197271 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(feat) Changed convergence criterion to total drag

Need to fix the tests! This will be done when adjoint is ok
parent fd2279f3
No related branches found
No related tags found
No related merge requests found
Pipeline #21130 failed
......@@ -72,8 +72,8 @@ class Coupler:
aeroCoeffs = np.vstack((aeroCoeffs, [self.iSolverAPI.getCl(), self.vSolver.Cdt, self.vSolver.Cdf + self.iSolverAPI.getCd(), self.vSolver.Cdf]))
# Check convergence status.
#cd = self.vSolver.Cdf + self.iSolverAPI.getCd()
cd = self.vSolver.Cdt if self.vSolver.Cdt != 0 else self.vSolver.Cdf + self.iSolverAPI.getCd()
cd = self.vSolver.Cdf + self.iSolverAPI.getCd()
#cd = self.vSolver.Cdt if self.vSolver.Cdt != 0 else self.vSolver.Cdf + self.iSolverAPI.getCd()
error = abs((cd - cdPrev) / cd) if cd != 0 else 1
if error <= self.couplTol:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment