View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003837||OpenFOAM||[All Projects] Bug||public||2022-05-09 08:09||2022-05-09 08:20|
|Priority||high||Severity||minor||Reproducibility||unable to reproduce|
|Status||closed||Resolution||no change required|
|Platform||Linux||OS||Ubuntu||OS Version||18.04.6 LTS|
|Fixed in Version|
|Summary||0003837: Unable to set source and target faces|
I am trying to work on patch to patch coupled boundary condition. I came across coupled boundary condition namely AMI, CyclicAMI. I am new to this part.
1. Does AMI and CyclicAMI work only for dynamic meshes?
2. I am trying to interpolate the dirichlet boundary conditon values on one patch to adjacent patch using AMI boundary condition. (The mesh does not move and still I have tried to use it).
3. I am facing an issue stating as mentioned in title as "Unable to set source and target faces".
My boundary file is as follows as present in constant/polymesh/boundary:
separationVector (0.005 0 0);
separationVector (-0.005 0 0);
I am working with chtMultiRegionSimpleFoam, due to this, the region boundary corresponding to the AMI patches are also same.
AMI: Creating addressing and weights between 7113 source faces and 9334 target faces
--> FOAM Warning :
From function void Foam::AMIMethod<SourcePatch, TargetPatch>::checkPatches() const [with SourcePatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>; TargetPatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>]
in file lnInclude/AMIMethod.C at line 57
Source and target patch bounding boxes are not similar
source box span : (0.163847 0.1670128 0.08645282)
target box span : (0.2068839 0.1798336 0.08224967)
source box : (0.003686016 -0.0002872496 0) (0.167533 0.1667256 0.08645282)
target box : (0.07743542 -0.006471181 0) (0.2843193 0.1733624 0.08224967)
inflated target box : (0.0631258 -0.0207808 -0.01430962) (0.2986289 0.187672 0.09655929)
--> FOAM FATAL ERROR:
Unable to set source and target faces
From function void Foam::faceAreaWeightAMI<SourcePatch, TargetPatch>::setNextFaces(Foam::label&, Foam::label&, Foam::label&, const boolList&, Foam::labelList&, const Foam::DynamicList<int>&, bool) const [with SourcePatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>; TargetPatch = Foam::PrimitivePatch<Foam::face, Foam::SubList, const Foam::Field<Foam::Vector<double> >&>; Foam::label = int; Foam::boolList = Foam::List<bool>; Foam::labelList = Foam::List<int>]
in file lnInclude/faceAreaWeightAMI.C at line 287.
How does this AMI work and what are the changes need to be made.? For reference, I have attached the surface image, where the left patch contains the dirichlet boundary condition and right patch is the one where the interpolation from dirichlet boundary condition showed happen.
Image has been attached for reference.
Is there a possibility of interpolating one surface patch to another for a static mesh? Open to give the case files.
Thanks and regards,
Sunag R A.
|Tags||No tags attached.|
|2022-05-09 08:09||rasunag27||New Issue|
|2022-05-09 08:09||rasunag27||File Added: image_ami.png|
|2022-05-09 08:19||henry||Assigned To||=> henry|
|2022-05-09 08:19||henry||Status||new => closed|
|2022-05-09 08:19||henry||Resolution||open => fixed|
|2022-05-09 08:19||henry||Note Added: 0012579|
|2022-05-09 08:20||henry||Resolution||fixed => no change required|