Skip to content

Commit bb87424

Browse files
Merge pull request #238 from antjost/devProjectOld
[IBM] Post - option to revert to old projection in case it is needed Temporary and with comments. Replicating behavior seen in extractIBMWallFields.
2 parents 0a884c0 + 84ee548 commit bb87424

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Cassiopee/Post/Post/IBM.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -1038,18 +1038,24 @@ def prepareSkinReconstruction(tb, tc, dimPb=3, ibctypes=[], prepareMLS=True):
10381038

10391039
return graphIBCDPost, ts
10401040

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):
10421048
"""Computes the surface flow solution at the wall."""
10431049
tp = Internal.copyRef(ts)
1044-
_computeSkinVariables(tp, tc, graphIBCDPost, dimPb, ibctypes, isPreProjectOrtho=isPreProjectOrtho)
1050+
_computeSkinVariables(tp, tc, graphIBCDPost, dimPb, ibctypes, isPreProjectOrtho=isPreProjectOrtho, old=old)
10451051
return tp
10461052

1047-
def _computeSkinVariables(ts, tc, graphIBCDPost, dimPb=3, ibctypes=[], isPreProjectOrtho=False):
1053+
def _computeSkinVariables(ts, tc, graphIBCDPost, dimPb=3, ibctypes=[], isPreProjectOrtho=False, old=False):
10481054
"""Computes the surface flow solution at the wall."""
10491055
tl = createCloudIBM__(tc, ibctypes)
10501056
tl = setIBCTransfersPost__(graphIBCDPost, tl)
10511057
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)
10531059
Cmpi.barrier()
10541060
return None
10551061

0 commit comments

Comments
 (0)