@@ -1038,18 +1038,24 @@ def prepareSkinReconstruction(tb, tc, dimPb=3, ibctypes=[], prepareMLS=True):
1038
1038
1039
1039
return graphIBCDPost , ts
1040
1040
1041
- def computeSkinVariables (ts , tc , graphIBCDPost , dimPb = 3 , ibctypes = [], isPreProjectOrtho = False ):
1041
+ ##Added old parameter to revert back to the previous project cloud solution method.
1042
+ ##See Post/PyTree.py _projectCloudSolution
1043
+ ##old=True for wind tunnel test cases. Has shown to yield more physically accurate results.
1044
+ ##old means we are reverting back to predominant extrapolations for the projectCloudSolution.
1045
+ ##When a more stable & robust solution is obtained for these test cases this argument will be removed.
1046
+ ##See Antoine J. @ DAAA/DEFI for more questions. - error appears at 90 edges of the wind tunnels.
1047
+ def computeSkinVariables (ts , tc , graphIBCDPost , dimPb = 3 , ibctypes = [], isPreProjectOrtho = False , old = False ):
1042
1048
"""Computes the surface flow solution at the wall."""
1043
1049
tp = Internal .copyRef (ts )
1044
- _computeSkinVariables (tp , tc , graphIBCDPost , dimPb , ibctypes , isPreProjectOrtho = isPreProjectOrtho )
1050
+ _computeSkinVariables (tp , tc , graphIBCDPost , dimPb , ibctypes , isPreProjectOrtho = isPreProjectOrtho , old = old )
1045
1051
return tp
1046
1052
1047
- def _computeSkinVariables (ts , tc , graphIBCDPost , dimPb = 3 , ibctypes = [], isPreProjectOrtho = False ):
1053
+ def _computeSkinVariables (ts , tc , graphIBCDPost , dimPb = 3 , ibctypes = [], isPreProjectOrtho = False , old = False ):
1048
1054
"""Computes the surface flow solution at the wall."""
1049
1055
tl = createCloudIBM__ (tc , ibctypes )
1050
1056
tl = setIBCTransfersPost__ (graphIBCDPost , tl )
1051
1057
tl = T .join (tl )
1052
- P ._projectCloudSolution (tl , ts , dim = dimPb , ibm = True , isPreProjectOrtho = isPreProjectOrtho )
1058
+ P ._projectCloudSolution (tl , ts , dim = dimPb , ibm = True , isPreProjectOrtho = isPreProjectOrtho , old = old )
1053
1059
Cmpi .barrier ()
1054
1060
return None
1055
1061
0 commit comments