You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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!
The text was updated successfully, but these errors were encountered:
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:
const cyclicACMIFvPatch& acmiNeiPatch = acmiPatch.neighbPatch();
to
const cyclicACMIFvPatch& acmiNeiPatch = acmiPatch.neighbFvPatch();
label nonOverlapOwnID = acmiOwnPatch.nonOverlapPatchID();
to
const fvPatch& nonOverlapOwnID = acmiOwnPatch.nonOverlapFvPatch();
label nonOverlapNeiID = acmiNeiPatch.nonOverlapPatchID();
to
const fvPatch& nonOverlapNeiID = acmiNeiPatch.nonOverlapFvPatch();
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 havesrcWeightsSum()
member anymore! Also because I changed the type ofnonOverlapOwnID
it doesn't fit innei_field.boundaryField()[nonOverlapOwnID]
anymore!The text was updated successfully, but these errors were encountered: