2 fileName casePath(args.additionalArgs()[0]);
3 fileName fluidRootDir = casePath.path();
4 fileName fluidCaseDir = casePath.name();
6 Info<< "Fluid: " << fluidRootDir << " " << fluidCaseDir << endl;
10 Time::controlDictName,
15 fluidRunTime.setDeltaT(runTime.deltaT().value());
21 fvMesh::defaultRegion,
22 fluidRunTime.timeName(),
27 label fluidInterfacePatchID =
28 fluidMesh.boundaryMesh().findPatchID("interface");
30 if(fluidInterfacePatchID == -1)
32 FatalErrorIn(args.executable())
33 << "Can't find patch with name interface" << abort(FatalError);
36 patchToPatchInterpolation interpolator
38 fluidMesh.boundaryMesh()[fluidInterfacePatchID],
39 mesh.boundaryMesh()[interfacePatchID],
46 mesh.C().boundaryField()[interfacePatchID]
47 - interpolator.faceInterpolate(fluidMesh.C().boundaryField()[fluidInterfacePatchID])
50 Info << "Patch-to-patch interpolation error, max: " << max(error) << ", avg: " << average(error) << endl;