CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Unable to set source and target faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2022, 02:38
Default Unable to set source and target faces
  #1
Member
 
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 6
sunagra27 is on a distinguished road
Hi,

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:


Code:
3
(
    AMI_patch1
    {
        type            cyclicAMI;
	inGroups	  1(cyclicAMI);
	matchTolerance 0.001;
	transform	   noOrdering;
	neighbourPatch	AMI_patch2;
        nFaces          7113;
        startFace       730746;
	separationVector (0.005 0 0);
    }
    chestwall
    {
        type            patch;
        nFaces          5196;
        startFace       737859;
    }
    AMI_patch2
    {
        type            cyclicAMI;
	inGroups	   1(cyclicAMI);
	matchTolerance	0.001;
	transform	   noOrdering;
	neighbourParch	AMI_patch1;
        nFaces          9334;
        startFace       743055;
	separationVector (-0.005 0 0);
    }
)
* I am working with chtMultiRegionSimpleFoam, due to this, the region boundary corresponding to the AMI patches are also same.

Error

Code:
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.

FOAM aborting

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 source: https://drive.google.com/file/d/1kLj...ew?usp=sharing

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.
sunagra27 is offline   Reply With Quote

Old   August 7, 2022, 10:06
Default
  #2
New Member
 
Join Date: Jul 2022
Posts: 8
Rep Power: 3
Gavin Tall is on a distinguished road
Did you solve this problem please? I seem to have the same problem now
I have spent a lot of time on this issue and sincerely ask for your help
Gavin Tall is offline   Reply With Quote

Reply

Tags
ami, boundary, boundarycondition, mesh, openfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 35 April 29, 2022 15:35
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49


All times are GMT -4. The time now is 01:32.