Where should i define custom prop

satri
satri Altair Community Member

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

image.png

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

image.png
Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi,

    If you are wanting to hcange the custom properties via the Coupling Interface you would have to use the setValueForProperty function:

    Site faviconUse Custom Particle Properties

    Regards

    Stephen

  • satri
    satri Altair Community Member

    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.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.