Hi,
I have added a new contact model based on the src from "BondedParticle_v3_1_0". I have meet a errors when I import dll into EDEM as figure attached.
I have created new custom properties as below:
iBOND_NORMAL_TORQUE_A = contactCustomPropertyManager->getPropertyIndex(BOND_NORMAL_TORQUE_A.c_str());;
iBOND_TANGENTIAL_TORQUE_A = contactCustomPropertyManager->getPropertyIndex(BOND_TANGENTIAL_TORQUE_A.c_str());;
iBOND_NORMAL_TORQUE_B = contactCustomPropertyManager->getPropertyIndex(BOND_NORMAL_TORQUE_B.c_str());;
iBOND_TANGENTIAL_TORQUE_B = contactCustomPropertyManager->getPropertyIndex(BOND_TANGENTIAL_TORQUE_B.c_str());;
and I also modified the "getNumberOfRequiredProperties" as below:
unsigned int CBonded::getNumberOfRequiredProperties(const EPluginPropertyCategory category) { if (eContact == category) { return 9; // 9 propertied in total } else { return 0; } }
and in "getDetailsForProperty" as below:
if (3 == propertyIndex && eContact == category) { strncpy(name, BOND_NORMAL_TORQUE_A.c_str(), NApi::CUSTOM_PROP_MAX_NAME_LENGTH); dataType = eDouble; numberOfElements = 3; unitType = eForce; // Initialization of the property values in this case 0.0 for all components - X,Y,Z std::ostringstream oss; oss << 0.0 << NApi::delim() << 0.0 << NApi::delim() << 0.0; strncpy(initValBuff, oss.str().c_str(), NApi::BUFF_SIZE); return true; }
Shouldn't I change the name of "BOND_NORMAL_TORQUE" or "BOND_TANGENTIAL_TORQUE"?
I don't know where the value of "NormBondTorque_a" etc. from?
Thanks for anyone can help.
Regards!
Raheem