Assign value from fluent to custom property of EDEM

satri
satri Altair Community Member

Hello

I have a custom property in EDEM called "val1" I want to access inside Ansys fluent.

So this is what i see in ansys fluent for edem custom properties (This is from EDEM coupling) I have a few questions on this

Q1) Let's say I give it a number 2. That means I have two properties of edem available inside ansys fluent, right?

and I want to give that custom property a name say Val1

I need to give that name in line 86 right?

or both are wrong and i need to define the custom properties in this file edem_user_names.c in this section.

And my next question is

Q2) How do i access this custom property that i create in ansys? I want to assign it a value of say 0.2. How do i do it I am not getting any examples of how you assigned the custom property a value inside fluent?

Tagged:

Welcome!

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

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi, Just highlighting that usage of custom properties in the Coupling Interface is listed here:

    https://help.altair.com/edem/topics/coupling_interface_programming_guide/use_custom_particle_properties_c.htm


    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.

  • satri
    satri Altair Community Member

    Hello Stephen,

    Please give me the syntax of what needs to be written to define a custom property in fluent for Eden. I read your documentation and it is not helpful.

    Please give me the syntax of how to define a custom property and how to modify it.

    I have asked this to ansys and they told it's edem guys who need to tell this to me. I am clueless as to what needs to be done and I am not getting an answer to my question.

    Please type out the lines of code that needs to be written to access the custom property of Eden through fluent?

  • satri
    satri Altair Community Member

    Hey Stephen,

    What is the syntax used to define custom properties?

    The link you provided is not at all helpful.

    It shows the mechanism of how the custom property works, which is great. But how exactly do you define it.

    I understand how to define it in EDEM API. I really do not know how to do it in fluent udf. And your documentation is not helpful.

  • satri
    satri Altair Community Member

    This is what i see in your lib_edem_compiling → src folder

    Line 34, where you register the number of custom property, has a value of 0. (in the file custom_properties_user_reals.c)

    Also this

    line 11 in custom_properties_particle_size_change.c has value for num_registered_properties as 0

    When the number of custom properties is 0

    How are you able to access two custom properties on lines 44 and 45 in the file dpm_scalar_udf.c?

    I looked at every single file given in the folder

    lib_edem_compiling

    , and I could not find any location where you have defined two custom properties.

    So tell me, how is this working? This is from your tutorial. I have not modified any of the files from the tutorial.

  • satri
    satri Altair Community Member

    or tell me is this where you define the custom properties in the file edem_user_real_names.c

    How can you define these when

    num_registered_properties = 0 in files (Custom_properties_user_reals.c and

    custom_properties_particle_size_change.c) What is the logic? Where are you telling how many custom properties you want?

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.