Joffrey Dorville
db673b9acb
Automatic C++ doc generation ( #3950 )
...
Tests and Coverage / filter-changes (push) Has been cancelled
dockerhub-publish-develop / main (push) Has been cancelled
dockerhub-publish-develop-dagmc-libmesh / main (push) Has been cancelled
dockerhub-publish-develop-dagmc / main (push) Has been cancelled
dockerhub-publish-develop-libmesh / main (push) Has been cancelled
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Has been cancelled
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Has been cancelled
Tests and Coverage / coverage (push) Has been cancelled
Tests and Coverage / Check CI status (push) Has been cancelled
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-07-17 15:47:40 +00:00
Paul Romano
4f6a25e00a
Introduce new C API function for slice plots ( #3806 )
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
2026-06-08 21:08:08 +00:00
Patrick Shriwise
bcb9395207
SolidRayTracePlot CAPI ( #3789 )
...
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
2026-02-13 07:54:27 +02:00
Kevin Sawatzky
14acc762bc
C-API bindings for key random ray functions ( #3749 )
2026-02-06 10:42:32 -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
Paul Romano
f7a734189a
Optionally compute bounding boxes in Mesh.material_volumes ( #3731 )
2026-01-29 09:20:48 +02:00
Kevin Sawatzky
607f6babe5
Add distributed cell densities ( #3546 )
...
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-09-19 04:11:06 +00:00
ahman24
239f7fed5e
Implement user-configurable random number stride ( #3067 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-03-04 17:26:38 -06:00
Paul Romano
e060534ff1
Compute material volumes in mesh elements based on raytracing ( #3129 )
...
Co-authored-by: Olek <45364492+yardasol@users.noreply.github.com>
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2025-02-26 08:14:53 -06:00
Baptiste Mouginot
5ad1a4aa1e
Differentiate materials in DAGMC universes ( #3056 )
...
Co-authored-by: Baptiste Mouginot <bam.git.not.reply@gmail.com>
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Co-authored-by: azimG <azimgivron@yahoo.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-01-07 21:50:02 +00:00
Patrick Shriwise
f543c007a3
Statepoint file loading refactor and CAPI function ( #2886 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-04-24 17:09:56 -05:00
Paul Romano
bf33a9e11b
Add openmc_mesh_get_volumes C API function ( #2869 )
2024-02-13 06:44:05 -06:00
Paul Romano
187160d082
Ability to compute material volume fractions over mesh elements ( #2802 )
2024-01-19 09:01:18 -06:00
Patrick Shriwise
057c33a48e
Expose Material::depletable in the CAPI ( #2843 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-01-17 20:46:37 +00:00
Patrick Shriwise
afa6ceb7d7
Adding ability to set additional ww attrs from openmc.lib ( #2609 )
...
Co-authored-by: Jonathan Shimwell <mail@jshimwell.com>
2023-07-22 21:18:46 +01:00
Patrick Shriwise
610a5d8c34
Global Weight Window Generation via CAPI ( #2359 )
...
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-09 10:47:27 -05:00
Paul Romano
0587aeeaa4
Allow EnergyFunctionFilter interpolation to be set from C API
2022-10-18 12:14:15 -05:00
Lewis Gross
70598087cd
forgot to change name of arrgument from id to index in header
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-15 13:33:49 -05:00
lewisgross1296
30b1ae92cb
changed name and return type. added signature to capi.h. TODO error handling in tally.cpp
2022-08-11 13:45:28 -05:00
Paul Romano
b1267f0544
Allow openmc_sample_external_source to produce multiple samples
2022-07-15 20:12:10 -05:00
Paul Romano
1bc2bd8460
Apply clang-format on entire source
2021-08-11 11:41:49 -05:00
agnelson
ad3a14fa3d
Resolving comments from @paulromano. Namely, set the openmc.lib.Cell rotation and translations to be properties that can take iterables vice ndarrays. Also removed const declaration when not needed. Finally, revised code and tests so that we do not return a None for non-initialized cases. This would yield different behavior between translation and rotation and instead of leading to confusion I now simply always return a sensical ndarray of float values.That is no rotation is no longer None, but is now array([0., 0., 0.]).
2021-07-30 11:42:27 -05:00
agnelson
6a9d43bcdb
Added c-api methods for rotation matrix set/get
2021-07-28 05:37:13 -05:00
agnelson
1d8f4c922e
Added a set/get_translation attribute to the Cell C-API interface. This is also tested.
2021-07-27 18:30:48 -05:00
Paul Romano
d6f483d36f
Make sure openmc_properties_export/import appear in global namespace
2021-06-23 14:52:04 +07:00
Paul Romano
482848cadb
Add openmc_properties_export/import to C API (incomplete)
2021-06-23 11:25:42 +07:00
Patrick Shriwise
0488f58941
Exposing translation getting/setting through CAPI
2021-04-28 00:24:10 -05:00
Patrick Shriwise
9695cc2771
Updating unstructured mesh constructors to take a filename (template). Exposing unstructured mesh addition via CAPI.
2021-04-07 19:05:08 -05:00
Shikhar Kumar
6cb5b8b149
Address @smharper comments
2021-03-08 20:17:44 -05:00
Shikhar Kumar
f83ab39b99
First pass at exposing rectilinear mesh through C API
2021-02-08 22:25:17 -05:00
aprilnovak
0bba5833fb
Allow set_contained to be passed through C-API for setting cell temperatures. Refs #1754
2021-02-04 15:59:56 -06:00
Shikhar Kumar
d630746191
Address @paulromano comments
2020-12-03 10:37:13 -05:00
Shikhar Kumar
e87e5ba3dc
Move CMFD reweight to cpp, minor discrepancies in regression tests
2020-11-24 22:56:31 -05:00
Paul Romano
2e29ffacfe
Use openmc_load_nuclide consistently
2020-06-18 13:37:50 -05:00
Shikhar Kumar
6e7f524561
Create getter funtion for n_batches, update test_lib.py
2020-06-01 21:19:06 -04:00
Shikhar Kumar
7b4db3279a
Set n_batches and n_max_batches through C API
2020-06-01 18:06:31 -04:00
Paul Romano
dd283875a8
Remove restart_timers and have openmc_init/run start/stop total timer
2020-04-07 13:49:10 -05:00
rockfool
e645acdfa1
add timer restart for C API
2020-04-01 23:03:02 -04:00
rockfool
944afb1d20
fix a bug in timer reset
2020-04-01 21:00:06 -04:00
Shikhar Kumar
362e4d16b4
Merge branch 'develop' of github.com:openmc-dev/openmc into cmfd-omp
...
Conflicts:
openmc/cmfd.py
2019-11-04 22:52:16 -05:00
Shikhar Kumar
8e0b616075
Create use_all_threads variable instead of n_threads
2019-11-04 22:35:05 -05:00
Andrew Johnson
7a1a424d0f
Tally.writeable -> Tally.writable
...
Oops
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-09-26 20:34:11 -04:00
Shikhar Kumar
0ce75aa21b
Address Paul comments except setting threads as user param
2019-09-25 18:29:48 -04:00
Andrew Johnson
66593fd7e1
Expose tally.writeable_ through openmc.lib
...
Add two functions to capi.h:
openmc_tally_set_writeable and openmc_tally_get_writeable
which are exposed to the Python API through the
openmc.lib.Tally.writeable property. These functions are very
similar to the set/get active counterparts as both act on a boolean
Tally attribute
A new unit test test_tally_writeable has been added that toggles
the writeable state of a tally. It is important to note that the
writeable state must be reset, otherwise tallies in subsequent
tests will be skewed. This is because the test_tally_writeable
function requires the capi_simulation_init fixture and the tallies
are shared by those functions that use the capi_run fixture
2019-09-20 10:13:26 -05:00
Andrew Johnson
9b7ab0bacb
Expose/improve EnergyFunctionFilter through C-API
...
Add three functions that can be used to modify EnergyFunctionFilters
through the C-API:
- openmc_energyfunc_filter_set_data: set energy and y data
- openmc_energyfunc_filter_get_energy: obtain energies used in
interpolation
- openmc_energyfunc_filter_get_y: obtain ordinate values
These functions are modeled after openmc_energy_filter_[get|set]_bins.
The set_data function relies upon the new
EnergyFunctionFilter::set_data function, which is analogous
to EnergyFilter::set_bins function. Checks are performed
to make sure the energy and ordinate vectors are of equal
size before resetting and populating energy and y
private members.
An EnergyFunctionFilter did exist in openmc.capi, and has
now been flushed out to provide a better __init__ method,
as well as properties for retrieving energies and ordinates
for interpolation.
2019-07-30 11:49:21 -05:00
Patrick Shriwise
5ad4f94f3a
Removing CAPI function for bounding box of any type. Moving to a cell-only function. Tests are adjusted as needed.
2019-07-24 13:10:03 -05:00
Patrick Shriwise
72e92e9ad0
More updates. Adding complex cell test to unit tests.
2019-07-18 18:14:57 -05:00
Patrick Shriwise
1d075cefdd
Adding name property to CAPI cell/material classes.
2019-07-16 16:52:30 -05:00
Patrick Shriwise
a105702455
Updates to CAPI bounding box methods. Addition of global bounding box method. Adding tests for PWR pincell model.
2019-07-16 16:52:30 -05:00
Patrick Shriwise
ecbf7596c0
Corrections to surface bounding boxes based on sign. Corrections to cell/universe bounding boxes and capi exposure.
2019-07-16 16:52:30 -05:00