Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenFOAM v4>pisoCentral>tools>correctCentralACMIInterpolation Class #11

Open
Keivan-A-Gh opened this issue Dec 25, 2020 · 1 comment
Open

Comments

@Keivan-A-Gh
Copy link

Keivan-A-Gh commented Dec 25, 2020

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!
@unicfdlab
Copy link
Owner

Hi, we've switched to the OpenFOAM+ version of the OpenFOAM technology. The openfoam.org is no longer supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants