Skip to content

OpenFOAM v4>pisoCentral>tools>correctCentralACMIInterpolation Class #11

@Keivan-A-Gh

Description

@Keivan-A-Gh

Hi
I intended to use this class in OpenFOAM v7, but since there're massive changes in ACMI classes between OF v4 and v7, it becomes really difficult to modify the original code. Is there anybody who can help me with this problem?

If it would help, I did some minor changes as follows:

  • change const cyclicACMIFvPatch& acmiNeiPatch = acmiPatch.neighbPatch();
    to const cyclicACMIFvPatch& acmiNeiPatch = acmiPatch.neighbFvPatch();
  • change label nonOverlapOwnID = acmiOwnPatch.nonOverlapPatchID();
    to const fvPatch& nonOverlapOwnID = acmiOwnPatch.nonOverlapFvPatch();
  • and change label nonOverlapNeiID = acmiNeiPatch.nonOverlapPatchID();
    to const fvPatch& nonOverlapNeiID = acmiNeiPatch.nonOverlapFvPatch();
  • Also I tried to change nei_field.boundaryFieldRef()[acmiOwnPatch.index()] +=(1.0 - acmiOwnPatch.AMI().srcWeightsSum())*nei_field.boundaryField()[nonOverlapOwnID];
    to nei_field.boundaryFieldRef()[acmiOwnPatch.index()] +=(1.0 - acmiOwnPatch.AMIs().srcWeightsSum())*nei_field.boundaryField()[nonOverlapOwnID];
    but because the output of acmiOwnPatch.AMIs() has become a pointer list in contrast as what it was in OF v4, it doesn't have srcWeightsSum() member anymore! Also because I changed the type of nonOverlapOwnID it doesn't fit in nei_field.boundaryField()[nonOverlapOwnID] anymore!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions