How to Visualize custom property using cu file for sphero-cyl particle

satri
satri Altair Community Member

hello

I have a bunch of spherocylinder particles that I am running using GPU. I would like to visualize the custom property assigned to the particles in the cu program, but I can't see that in the results section when i write query

Can you please tell me how i can visualize these custom properties in the result section?

Tagged:

Welcome!

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

Answers

  • PrasadAvilala
    PrasadAvilala
    Altair Employee

    Hi Satri,

    I won't suggest comparing any two software's because though mathematical equations are same some constant parameters and the way implementation difference based on each individual due to their expertise.

    I would suggest please go through the reference papers from EDEM bibliography in help page and compare with your theoretical equations if this meeting your requirement use in built physics model, if you feel need to add some more variables use EDEM API model and customize based on your requirement and plugin in to EDEM to run the simulation.

    Hope this helps.

    Thanks,

    Prasad A

  • satri
    satri Altair Community Member

    Hello Prasad

    I dont understnad your statement at all. What does edem bibliography have to do with visualising custom property

    This is one of the edem provided apis

    I made this change in the cuda file and i am able to see the change in temperature inside gui

    I followed the exact process but i am not able to visualise in mine?

    I have a custom factory than an inbuilt factory that is producing sphere particles i am replacing those spherical particles with sphero-cyl.

    When i do a print i can see the value i am applying in the console (edem —no-free) but in the GUI its always 0 so i do not understand how this can happens?

    See this

    I am able to print the values

    But i do not see the values in the EDEM gui

    I am not resetting the value because in the example provide,d you are not resetting the temperature

    (https://community.altair.com/discussion/36532/edem-api-contact-model-example-heat-conduction?utm_source=community-search&utm_medium=organic-search&utm_term=conduction)

    I was also having this problem previously with the temperature module but when i added 10 it got fixed. I am trying to do the same thing. in my .cu file that i have modified for hertzMindlin api.

    Any suggestions on how to address this would be much appreciated.

  • PrasadAvilala
    PrasadAvilala
    Altair Employee

    Hi Satri,

    Please ignore the previous comments, wrongly typed to you.

    Let me through the reference file and update you why the particles are not updated with the temperature and meanwhile can you please try with CPU solver and check whether is updated or not?

    Thanks,

    Prasad A

  • satri
    satri Altair Community Member

    Never mind i found a way to do it.

    But please tell me this.

    I am looking at many CUDA examples provided by edem

    In this example

    https://community.altair.com/discussion/36532/edem-api-contact-model-example-heat-conduction?utm_source=community-search&utm_medium=organic-search&utm_term=conduction

    In line 60, 61

    you are using the value heald in the right hand side

    in line 70,71

    you are creating a pointer out of deltas

    why not do the same thing on line 60,61

    i see other examples and most of them have the form as shown in line 70,71

    and also tell me this suppose i want to initialize a value of custom property in .cu file how can i do that? because when i was not using cuda i would initialise the value of the custom property in this function

    now i do not have this fn in the .cu file so if i want to initialise the value of a custom property to 0 at the start of the simulation how can i do so?

    is there any example model that shows me how to do this?

    please let me know.

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi, if you want to initialise the value of a custom property it has to be done in the .cpp file. This will then apply for both CPU and GPU simulations.

    You can also set the value in the factory settings in the Creator if it's a particle property.

    Regards

    Stephen

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.