Welcome! Log In Create A New Profile


How to use the class "computeDensity"?

Posted by hjunghjung  
How to use the class "computeDensity"?
March 06, 2018 01:41AM
Hi all,

I've tried to use the following line of code but it didn't compile.


What I'm trying to do with the above code is accessing the cell and sum up the distribution functions of the cell and spit out the density value to "someVariable".
Could anyone tell me what is wrong with this approach?

In addition, I found out that I can get the density of cells over the entire domain by simply doing this


which can be useful later for me with one condition.
I need to store the computed values in a vector to be used for a third-party library but I have no idea how to convert MultiScalarFieldXD to a vector.

Any help would be greatly appreciated

Thanks in advance,

Edited 4 time(s). Last edit at 03/06/2018 04:05AM by hjung.
Sorry, you do not have permission to post/reply in this forum.