|
Hello,
I am getting the following error when running Granoo:
"Core::SetOf<DEM::DiscreteElement> with Id=inner is already used"
The error can be traced back to this specific line on my .inp file:
<PlugIn Id="_ManageCollision" Between="DiscreteElement/DiscreteElement" BroadPhase="LCM" Set="inner" CallBack="Standard" Stiffness="20000.000000000000" RestitutionCoeff="0.100000000000" RegularizationType="piecewise" DryFrictionSlope="1e5" StaticDryFrictionCoeff="0.3" DynamicDryFrictionCoeff="0.2" />
If I change Set="inner" to Set="Global", the program runs fine and all sets are identified correctly (including the "inner" set) in the granoo-viewer Results. E.g., they turn white when I click on them in the side dropdown menus.
The sets are basically constructed in the PlugIn_BuildDomain.cpp file from an external file:
auto& globalSet = DEM::DiscreteElement::All();
int sci;
for (i=0;i<ninner;i++)
{
fscanf(innerFile,"%d\n",&sci);
auto& DE = globalSet(sci);
innerSet.AddItem(DE);
}
Am I missing something here? Any idea what the problem could be...? It appears to be constructing the set correctly...
|