Hello, I am having trouble using a derived field with a CoveringGrid. I am making fields for dPhi/dx, dPhi/dy, dPhi/dz using the PotentialField from ENZO. The derivative fields do not get passed into the CoveringGrid and get recalculated. This leads to the derivative being zero in areas that were originally in coarse cells. Density and DivV fields were passed to the CoveringGrid properly. As a test I defined a field that was Density^2 and that was passed to the CoveringGrid properly, so I think it is a problem specific to derived fields based on the ENZO-specific PotentialField. I have included the source for my derivative functions. Thank you, Nathan Butcher
Hi Nathan,
This could be an issue with how you set up your covering_grid or
smoothed_covering_grid. Can you try out this script?
http://paste.yt-project.org/show/2512/
This depends on the script that you included in your post, so make sure
it's in the same directory. This will add up the number of cells in your
grid object for which the dPhidx field is zero.
Britton
On Fri, Jun 29, 2012 at 3:19 PM, Nathan Butcher
Hello,
I am having trouble using a derived field with a CoveringGrid. I am making fields for dPhi/dx, dPhi/dy, dPhi/dz using the PotentialField from ENZO. The derivative fields do not get passed into the CoveringGrid and get recalculated. This leads to the derivative being zero in areas that were originally in coarse cells.
Density and DivV fields were passed to the CoveringGrid properly. As a test I defined a field that was Density^2 and that was passed to the CoveringGrid properly, so I think it is a problem specific to derived fields based on the ENZO-specific PotentialField. I have included the source for my derivative functions.
Thank you, Nathan Butcher
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hello Britton,
Running the script you posted, I found that no cells in a
smooth_covering_grid have a dPhidx value of zero, and that 4501200 cells in
a covering_grid have dPhidx of zero.
Nathan
On Sun, Jul 1, 2012 at 11:59 AM, Britton Smith
Hi Nathan,
This could be an issue with how you set up your covering_grid or smoothed_covering_grid. Can you try out this script? http://paste.yt-project.org/show/2512/ This depends on the script that you included in your post, so make sure it's in the same directory. This will add up the number of cells in your grid object for which the dPhidx field is zero.
Britton
On Fri, Jun 29, 2012 at 3:19 PM, Nathan Butcher
wrote: Hello,
I am having trouble using a derived field with a CoveringGrid. I am making fields for dPhi/dx, dPhi/dy, dPhi/dz using the PotentialField from ENZO. The derivative fields do not get passed into the CoveringGrid and get recalculated. This leads to the derivative being zero in areas that were originally in coarse cells.
Density and DivV fields were passed to the CoveringGrid properly. As a test I defined a field that was Density^2 and that was passed to the CoveringGrid properly, so I think it is a problem specific to derived fields based on the ENZO-specific PotentialField. I have included the source for my derivative functions.
Thank you, Nathan Butcher
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Ok, excellent. We'll take this discussion off list now.
Britton
On Mon, Jul 2, 2012 at 9:35 AM, Nathan Butcher
Hello Britton,
Running the script you posted, I found that no cells in a smooth_covering_grid have a dPhidx value of zero, and that 4501200 cells in a covering_grid have dPhidx of zero.
Nathan
On Sun, Jul 1, 2012 at 11:59 AM, Britton Smith
wrote: Hi Nathan,
This could be an issue with how you set up your covering_grid or smoothed_covering_grid. Can you try out this script? http://paste.yt-project.org/show/2512/ This depends on the script that you included in your post, so make sure it's in the same directory. This will add up the number of cells in your grid object for which the dPhidx field is zero.
Britton
On Fri, Jun 29, 2012 at 3:19 PM, Nathan Butcher
wrote: Hello,
I am having trouble using a derived field with a CoveringGrid. I am making fields for dPhi/dx, dPhi/dy, dPhi/dz using the PotentialField from ENZO. The derivative fields do not get passed into the CoveringGrid and get recalculated. This leads to the derivative being zero in areas that were originally in coarse cells.
Density and DivV fields were passed to the CoveringGrid properly. As a test I defined a field that was Density^2 and that was passed to the CoveringGrid properly, so I think it is a problem specific to derived fields based on the ENZO-specific PotentialField. I have included the source for my derivative functions.
Thank you, Nathan Butcher
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Britton Smith
-
Nathan Butcher