Where should i define custom prop

I am trying to do a bi-directional coupling simulation, and I am trying to understand how I should define the custom property.
I have a custom property called as prop1 in EDEM
Say I have put the API of the Hertz_Mindlin contact model in EDEM. I have two particles that come in contact with each other I ssign a value of 2 to prop1 in EDEM.
Next i go to ansys fluent, where I want to check if the value of prop1 is 2 i need to make it 3. I will do this in something called as dem_properties_template(dpm_scalar_udf.c)
I dont know how i can assign a value of 3 to prop1 here
I do not know what syntax to follow as this is EDEM written lib not ansys one.
Because my objective is in the next step of the simulation cycle when i put the simulation in debug mode, I should see prop1 as 3 in edem
Answers
-
Hi,
If you are wanting to hcange the custom properties via the Coupling Interface you would have to use the setValueForProperty function:
Regards
Stephen
0 -
Hello Stephen,
Can you please provide an example? I have seen that in the documentation linked above. But i would like to see an example.
Do you have any example models? I know how to define it in EDEM. I want to know how to define it in FLUENT. None of the examples I have seen in the EDEM Knowledge base provide information. Please let me know if i missed any.
0