Add interpolation to powder fill example#213
Conversation
| @@ -0,0 +1,38 @@ | |||
|
|
|||
There was a problem hiding this comment.
This function misses the copyright notice.
Also, it seems the ability to interpolate would be helpful for other fields, not just density.
| f( pid, d ) = 0.0; | ||
| } | ||
| type( pid ) = 0; | ||
| type( pid ) = 1; |
There was a problem hiding this comment.
Why changing type from 0 to 1?
Why rho = 1 below?
There was a problem hiding this comment.
This is a temporary way to get this to work - I will change before we merge
|
In powder_fill.json, we have: Should these include units? |
| // ==================================================== | ||
| // Interpolate for consolidation | ||
| // ==================================================== | ||
| // Do this first to get the coarser grid. |
There was a problem hiding this comment.
Does this example suppose to run the powder setting first and then interpolate the final density profile and output to a file? (just making sure I understand)
Also, any reason to choose a coarser grid of half the number of cells per dimension? Is this an arbitrary choice?
There was a problem hiding this comment.
Yes you understand and yes that was an arbitrary choice
Powder to continuum demonstration
Before merging
typefield vs physical/relative density