insert single bond in gengeo
Hi everyone,
I'm simulating brittle extensional fracturing under changing stress regimes and study the effect of geomechanical properties on vein formation. For my simulation I need to read in a checkpoint-file of a simulation into gengeo, refill the crack that has just opened with new particles and remake the bonds and create new bonds. I do manage to remake the geometry and insert particles but I bumped into a problem in the 2D-case for re-enstating bonds between particles.
There is a routine insertBond(
I think I've found the problem in the source-code of gengeo. The routine is there in the c++ source but it is not present in the Python API wrapper.
MNTable2D.cc in gengeo/src does say:
-------
/*!
insert bond between particles with given ID
\param id1 id of 1st particle
\param id2 id of 2nd particle
\param btag bond tag
*/
void MNTable2D:
{
if(id1<id2){
m_bonds[
} else {
m_bonds[
}
}
and MNTable2D.h says:
-------
void insertBond(
But there is no reference to this routine in MNTable2DPy.cc.
But what I presume is the Pyhon API wrapper in MNTable3DPy.cc says:
-------
.def(
"Generates bonds between particle pairs separated by less than the specified tolerance\n"
"@type groupID: int\n"
"@kwarg groupID: the group ID of particles to bond together (default: 0)\n"
"@type tolerance: double\n"
"@kwarg tolerance: maximum distance separating bonded particles\n"
"@type bondID: int\n"
"@kwarg bondID: the bond ID to assign generated bonds\n"
"@rtype: void\n"
)
So it works for 3D but not for 2D. So perhaps all it takes is copy/paste/editing this to MNTable2DPy.cc?
Cheers
Koen
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vince Boros
- Solved:
- Last query:
- Last reply: