CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Supply either a patchName or a coupleGroup for patch Battery1Tab1In_fluid in region f

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2022, 23:36
Default Supply either a patchName or a coupleGroup for patch Battery1Tab1In_fluid in region f
  #1
New Member
 
Ding Yan
Join Date: Oct 2022
Posts: 10
Rep Power: 4
batteryFoamer is on a distinguished road
Dear all,

I have a problem that has been a long time, but I can not still solve it.

It's that I modify the chatmultiRegionFoam and add the potential equation in this solver. When I set up the case, I need to add two special patches on the positive and negative tabs of the prismatic battery, one is the Battery1Tab1In for the influx of current, and Battery1Tab2Out for the outflux of battery, which are shown in the figure 1.

I use the topoSet and createBafflesDict to create these patches,

But finally, I get the errorhow to solve this problem)
"
--> FOAM FATAL ERROR:
Supply either a patchName or a coupleGroup for patch Battery1Tab1In_fluid in region fluid

From function const Foam::word& Foam::mappedPatchBase::samplePatch() const
in file mappedPatches/mappedPolyPatch/mappedPatchBaseI.H at line 65.

FOAM exiting
"

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
// *********************battery region*********************
{
name battery1CellSet;
type cellSet;
action new;
source boxToCell;
sourceInfo
{
//box (0.005 0.011 0.012)(0.073 0.019 0.048);
box (0.016 0.011 0.012)(0.084 0.019 0.048);
// length: 68 8 36
}
}

{
name solid;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set battery1CellSet;
}
}


// *********************tab1 solid*********************
{
name battery1CellSet;
type cellSet;
action add;
source boxToCell;
sourceInfo
{
//box (0.0 0.013 0.018)(0.005 0.017 0.028);
box (0.011 0.013 0.018)(0.016 0.017 0.028);
}
}

{
name solid;
type cellZoneSet;
action add;
source setToCellZone;
sourceInfo
{
set battery1CellSet;
}
}

// *********************tab2 solid*********************
{
name battery1CellSet;
type cellSet;
action add;
source boxToCell;
sourceInfo
{
//box (0.0 0.013 0.032)(0.005 0.017 0.042);
box (0.011 0.013 0.032)(0.016 0.017 0.042);
}
}


{
name solid;
type cellZoneSet;
action add;
source setToCellZone;
sourceInfo
{
set battery1CellSet;
}
}



// *********************tab1 patch*********************
{
name Battery1Tab1FlowInSetFaceSet;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (0.0109 0.013 0.018)(0.0111 0.017 0.028);
//box (-0.0009 0.013 0.032)(0.0001 0.017 0.042);
}
}

{
name Battery1Tab1FlowInSet;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet Battery1Tab1FlowInSetFaceSet;
}
}

// *********************tab2 patch*********************
{
name Battery1Tab2FlowOutSetFaceSet;
type faceSet;
action new;
source boxToFace;
sourceInfo
{
box (0.0109 0.013 0.032)(0.0111 0.017 0.042);
//box (-0.0009 0.013 0.018)(0.0001 0.017 0.028);
}
}

{
name Battery1Tab2FlowOutSet;
type faceZoneSet;
action new;
source setToFaceZone;
sourceInfo
{
faceSet Battery1Tab2FlowOutSetFaceSet;
}
}

// *********************Air region*********************
{
name AirCellSet;
type cellSet;
action new;
source cellToCell;
sourceInfo
{
set solid;
}
}

{
name AirCellSet;
type cellSet;
action invert;
}

{
name fluid;
type cellZoneSet;
action new;
source setToCellZone;
sourceInfo
{
set AirCellSet;
}
}


);
Attached Images
File Type: jpg 1.jpg (33.9 KB, 7 views)

Last edited by batteryFoamer; November 14, 2022 at 05:58.
batteryFoamer is offline   Reply With Quote

Reply


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
What exactly the Relaxation factor does? Raza Javed OpenFOAM Running, Solving & CFD 11 July 2, 2019 04:42
HeatSource BC to the whole region in chtMultiRegionHeater xsa OpenFOAM Running, Solving & CFD 3 November 7, 2016 06:07
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 14:28.