Concrete values rather than visualizations

42 views
Skip to first unread message

AB C

unread,
Jun 28, 2023, 4:10:48 AM6/28/23
to OpenMOC Users Group
How to get the flux value for a  specified  location, rather than the flux distribution image via openmoc.plotter?

Travis Labossiere-Hickman

unread,
Jun 28, 2023, 10:40:06 AM6/28/23
to AB C, OpenMOC Users Group
If you know the source region and energy group numbers, then simply use Solver.getFlux(sr, group) to get the volume-integrated scalar flux. If you only have the coordinates of the location, then you can look up the source region with Geometry.getFSRId(coords, True).

On Wed, Jun 28, 2023 at 4:10 AM AB C <g1662...@gmail.com> wrote:
How to get the flux value for a  specified  location, rather than the flux distribution image via openmoc.plotter?

--
You received this message because you are subscribed to the Google Groups "OpenMOC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmoc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openmoc-users/4bf5209f-3da4-48b2-8d13-accf471504bbn%40googlegroups.com.

AB C

unread,
Jun 29, 2023, 6:29:45 AM6/29/23
to OpenMOC Users Group
Thank you, I encountered the following problem when using Geometry.getFSRId(coords, True):

TypeError: in method 'Geometry_getFSRId', argument 2 of type 'LocalCoords *'

Travis Labossiere-Hickman

unread,
Jun 29, 2023, 6:02:42 PM6/29/23
to AB C, OpenMOC Users Group
Actually that should just be  Geometry.getFSRId(coords). For the coords argument, make sure it is a LocalCoords object. Refer to the documentation here:

Reply all
Reply to author
Forward
0 new messages