openmc icon indicating copy to clipboard operation
openmc copied to clipboard

Tally filter for first-flight collision probabilites

Open smharper opened this issue 8 years ago • 7 comments

It would be handy if we could compute first-flight collision probabilities. I imagine we could do it by adding something like last_collision_material to the particle header which tells us in which material the particle had its last collision (or was born). Then we could filter it with a LastCollisionMaterialFilter that would be similar in implementation to a MaterialFilter.

@johnnyliu27, would you like to tackle this issue?

smharper avatar Jan 26 '18 16:01 smharper

Sure I’d like to give a try on this. Regarding to the future implementation of CMM, a variable in the particle header recording the neutron’s birth place will be definitely more useful for CMM. I’ll update here when I get into more details on this.

johnnyliu27 avatar Jan 26 '18 20:01 johnnyliu27

Hi, can I have a go at this?

EinKaiser avatar Oct 11 '19 15:10 EinKaiser

@johnnyliu27 Did you ever work on this or is it ok for @EinKaiser to give it a shot?

paulromano avatar Oct 11 '19 22:10 paulromano

Feel free to take this issue @EinKaiser since I didn't go too far on it. Thanks!

johnnyliu27 avatar Oct 11 '19 22:10 johnnyliu27

Is this still open? Can give it a try if so

maxtriano avatar Feb 20 '24 23:02 maxtriano

Hi @maxtriano, I think this is all yours if you want to take a crack at it!

pshriwise avatar Feb 21 '24 16:02 pshriwise

Would this last_collision_material be different from material_last_ which is currently stored in GeometryState? In that case, all that needs to be done is to add a LastCollisionMaterialFilter?

maxtriano avatar Feb 25 '24 13:02 maxtriano