Ethan Peterson
c55c578812
Native parametric tokamak source ( #3999 )
...
Tests and Coverage / filter-changes (push) Waiting to run
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / coverage (push) Blocked by required conditions
Tests and Coverage / Check CI status (push) Blocked by required conditions
dockerhub-publish-develop / main (push) Waiting to run
dockerhub-publish-develop-dagmc-libmesh / main (push) Waiting to run
dockerhub-publish-develop-dagmc / main (push) Waiting to run
dockerhub-publish-develop-libmesh / main (push) Waiting to run
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-07-16 09:54:56 -05:00
Jack Fletcher
368ea069ca
Local adjoint source for Random Ray ( #3717 )
2026-04-28 16:10:03 -05:00
Ethan Peterson
2bd06660c5
Parallelize sampling external sources and threadsafe rejection counters ( #3830 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-03-04 14:36:43 -06:00
Paul Romano
b41e22f68b
Refactor ParticleType to use PDG Monte Carlo numbering scheme ( #3756 )
...
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
Co-authored-by: Amanda Lund <alund1187@gmail.com>
2026-02-03 07:23:24 +00:00
Jack Fletcher
0486e433d2
Source biasing capabilities ( #3460 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-01-12 09:51:12 -06:00
Joffrey Dorville
659e43af7d
Enabling MCPL source files to be read when using surf_source_read ( #3472 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-07-18 08:47:08 +00:00
Paul Romano
ecfb666db7
Allow spatial constraints on element sources within MeshSource ( #3431 )
2025-07-01 09:03:28 -05:00
Paul Romano
f571be87c5
Add user setting for source rejection fraction ( #3433 )
2025-06-10 22:51:51 -05:00
Ebny Walid Ahammed
2d988a69a1
External sources alias sampler ( #3201 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-11-23 19:10:39 +00:00
John Tramm
5222b343a4
Fixed Source Random Ray ( #2988 )
...
Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-06-17 11:02:20 -05:00
Erik B Knudsen
1702b4554b
Restricted file source ( #2916 )
...
Co-authored-by: church89 <l.chierici89@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-05-15 15:49:04 -05:00
Patrick Shriwise
e0d03812b9
Mesh Source Class ( #2759 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2023-12-02 17:35:23 +00:00
Patrick Shriwise
eda39ad9ca
Python source class refactor ( #2524 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-20 21:27:55 -05:00
Paul Romano
a3065b479c
Move FileSource MCPL reading to mcpl_interface.h/cpp
2022-12-22 11:33:29 -06:00
erkn
ff48f53595
skip mcpl-test if it is not enabled
...
patterned after the dagmc-tests
This required the MCPL_ENABLED symbol to be unmangled
2022-12-22 12:04:29 +01:00
erkn
95338eada0
refactor MCPL file read part of FileSource
...
A new constructor is added to FileSource that reads from
a given MCPL-file.
2022-10-11 16:46:23 +02:00
Erik B Knudsen
1509420c21
fix bugs and finalize interface to MCPL
2022-10-11 16:44:53 +02:00
Erik B Knudsen
249a554980
declarations of MCPL-internals
2022-10-11 16:35:18 +02:00
Erik B Knudsen
bf0c5d7f9a
add placeholder skeleton for MCPL-input
2022-10-11 16:35:18 +02:00
Paul Romano
3e5c9d83c5
Expand source rejection to cells, materials, and universes
2022-09-26 13:25:41 -05:00
Paul Romano
aff6316642
Simple rejection based on a vector of cell IDs
2022-09-26 13:25:41 -05:00
Patrick Shriwise
780039c512
moving some single-use constants closer to point of use
2022-01-20 15:10:24 -06:00
Olaf Schumann
d93df33dfb
Implementation of time distribution for the source
2022-01-05 21:06:09 +00:00
Paul Romano
1bc2bd8460
Apply clang-format on entire source
2021-08-11 11:41:49 -05:00
Gavin Ridley
061156e79a
address PR comments
2021-05-03 18:03:06 -04:00
Gavin Ridley
ad4e1c9f4a
remove std:: from vector,unique_ptr,make_unique,array
2021-05-03 18:01:27 -04:00
Gavin Ridley
2af4c9cd92
use base class to handle layout of particle data
2021-05-03 17:57:41 -04:00
Paul Romano
9af5541e88
Make Source::sample() method const
2020-10-27 10:02:03 -05:00
Paul Romano
0bb39005bc
Rename source classes
2020-10-23 14:11:34 -05:00
Paul Romano
5a60133d5b
Implement SourceFile derived from SourceDistribution
2020-10-23 06:56:14 -05:00
Paul Romano
3f62fab565
Add wrapper class for custom sources
2020-10-22 15:50:30 -05:00
Paul Romano
713469bf59
Make regular source distributions obey the same interface as custom sources
2020-10-22 15:07:28 -05:00
Paul Romano
8f71ed2a1d
Store sites from source file in SourceDistribution
2020-10-22 15:07:23 -05:00
Dan Short
21e8d91e90
Requested updates to source
...
Rename sample_source -> sample.
Use std::string as type of argument to openmc_create_source.
Use reinterpret_cast when accessing dlsym.
Also moves check for dlerror to be before the attempt to create the
source (avoids null reference if fails) and capture error message
before dlclose, so that the error message is still available.
Formatting updates and some refactoring for examples and tests.
2020-08-28 09:49:36 +01:00
Dan Short
821e7d9825
Remove old source_sampling custom source method
...
Custom sources are now created only through the new class-based method,
which supports parameterization.
New method also slightly adjusted to create the source as managed by a
unique_ptr.
Examples and tests updated to align with this approach.
Documentation updated.
2020-08-21 12:05:43 +01:00
Dan Short
fae474869c
Remove external destroy method
...
OpenMC will call delete directly on the CustomSource.
2020-08-05 16:00:49 +01:00
Dan Short
64a4c96a94
Rename serialized -> parameterized
...
Updates to examples and tests to refer to parameterized sources rather
than serialized sources.
Small update to source.h to remove reference to serialized parameters.
2020-08-05 15:53:48 +01:00
Dan Short
9c1b318e78
Only instantiate custom source once
...
In the existing custom_source implementation, the source will only be
created once. This is much more efficient than the custom serialized
source, where each sampling will create a new instance of the class.
As there could be many samples, this introduces an overhead,
particularly if the operations to instantiate the class are not trivial.
This implementation defines an abstract class, which is then used by the
custom classes to allow the custom serialized class to be created based
on the plugin, sampled from, and then destroyed.
Update documentation and test to reflect this.
2020-08-03 17:38:12 +01:00
Gavin Ridley
aa47f443dd
Update include/openmc/source.h
...
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-20 12:04:35 -04:00
Gavin Ridley
24843a4593
add some accessors for copying stuff to GPU
2020-03-19 15:43:39 -04:00
davidjohnlong
6c188f2578
Update include/openmc/source.h
...
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 15:46:23 +00:00
davidjohnlong
47ea7bbcf5
Update include/openmc/source.h
...
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-12 15:46:08 +00:00
davidjohnlong
eac442f31c
Move function description to header file
2020-03-12 09:34:38 +00:00
davidjohnlong
907459d02f
Implement new fixed source bank model for custom library source. Additional non-member functions in source.cpp with function pointer saved in model namespace allow custom library to be opened, sampled as needed in initialize_history and closed.
2020-03-06 16:03:15 +00:00
Paul Romano
c5dbff356a
Fixes to custom source feature
2020-02-17 15:45:50 -06:00
Andrew Davis
441c284c52
Refactor into function as suggested by review
2020-02-12 13:06:30 +00:00
Andrew Davis
58d751bfae
Added internal infrastructure for dlopen based shared object sources
2020-02-12 12:37:21 +00:00
John Tramm
0602ddd8a3
refactor seed and seed aray variable names
2019-12-05 19:50:31 +00:00
John Tramm
638172e68d
refactor of prn() interface and python interface changes
2019-12-04 16:35:01 +00:00
Paul Romano
eca3ce33d2
Fix pointer placement on uint64_t
2019-11-27 07:04:11 -06:00