提交图

2848 次代码提交

作者 SHA1 备注 提交日期
nmannall
818418c952 Merge branch 'refactor-create-internal-objects' into mpi 2024-05-21 14:45:45 +01:00
nmannall
b8b17a83bc Rename variables to use cone instead of cylinder 2024-05-21 14:40:51 +01:00
nmannall
b893a83632 Revert "Added averaging check for API to convert y/n to True/False"
This reverts commit 23c88cee25.
Reverting because this commit caused a circular dependency between
hash_cmds_geometry.py and the UserObject files in cmds_geometry/
2024-05-21 14:39:23 +01:00
nmannall
98e74c0c7a Merge branch 'mpi' into refactor-create-internal-objects 2024-05-21 14:20:44 +01:00
nmannall
c23a2c2a40 Merge branch 'devel' into mpi 2024-05-21 14:07:37 +01:00
nmannall
bf386a15b4 Fix subgrid updater needing iteration count
SubgridUpdater now keep track of the number of iterations. Override
update methods to pass the current iteration and increment it in the
correct place. Pass the Model to create_updates as need access to the
main grid as well as subgrids.
2024-05-21 12:01:29 +01:00
nmannall
6033d19e74 Initialise FDTDGrid.dl 2024-05-21 11:58:44 +01:00
nmannall
a4ed515a00 Check if should use model or subgrid iterations
A subgrid may have a different number of iterations to the main model.
The correct one should be used when creating sources.
2024-05-21 11:56:27 +01:00
nmannall
5a29d298b1 Use Model properties rather than access G directly 2024-05-21 10:26:24 +01:00
nmannall
06c8908c2c Move srcsteps and rxsteps into Model class 2024-05-21 10:25:56 +01:00
nmannall
d25ceb281d Fix materials only built when have dispersive materials 2024-05-20 18:09:20 +01:00
nmannall
c3e43d0283 Fix calculating waveform values Magnetic Dipole sources
Should pass model.iterations rather than model.iteration which will
always be 0
2024-05-20 18:07:40 +01:00
nmannall
92c3f9e8c4 Pass Model to write_hdf5_outputfile not FDTDGrid 2024-05-20 18:06:50 +01:00
nmannall
11ff3f6df6 Pass iteration to magnetic source updates 2024-05-20 18:05:40 +01:00
nmannall
31d20dcdd3 Fix regression due to precision of FDTDGrid.dl
np.single caused many extra decimal places that using built in float
as the dtype does not.
2024-05-20 16:28:32 +01:00
nmannall
543b6ea009 Pass iteration to update functions that need it 2024-05-20 16:16:53 +01:00
nmannall
ce1e811fb1 Build subgrids from Model and simplify FDTDGrid.build()
Subgrids are no longer contained within an FDTDGrid. The FDTDGrid.build()
function now just builds the grid it is called on. The Model class now
checks memory requirements etc.
2024-05-20 16:00:47 +01:00
nmannall
d4a3f3e3a4 Pass correct Model or FDTDGrid object to UserObjects 2024-05-20 15:40:00 +01:00
nmannall
1f71bfa858 Set FDTDGrid dimensions in Domain UserObject 2024-05-20 15:23:38 +01:00
nmannall
f76919fd81 Move mixing models back into FDTDGrid 2024-05-20 15:22:54 +01:00
nmannall
388e025aed Revert "Refactor remaining UserObjectGeometry build processes"
This reverts commit 444f2a6a7f.
2024-05-20 15:20:20 +01:00
nmannall
c63b8f3229 Revert "Refactor AddGress UserObject build process"
This reverts commit 1d7b5ff0f9.
2024-05-20 15:16:59 +01:00
nmannall
672dd44094 Move materials back into FDTDGrid class
Materials are used to by the grid to build PMLs and components as well
as creating new materials to voltage sources. Additionally, didn't parts
of the grid will need a different subset of materials. Storing in Grid
could in the future reduce data duplication and the duplicate
computation looks to be minimal.
2024-05-20 15:11:41 +01:00
nmannall
b7e9bd7678 Revert "Setup UserObjectGeometry to build using a Model"
This reverts commit 07052347de.
2024-05-20 15:04:37 +01:00
nmannall
c323cea83c List numpy arrays in FDTDGrid constructor
More clearly lists the properties of an FDTDGrid without having to read
every method.
2024-05-17 17:20:35 +01:00
nmannall
1b24a72ca4 Fix validation for stepping sources and receivers
Validation was using the source step size - should be the step size
passed to the _update_positions function.
2024-05-17 16:39:38 +01:00
nmannall
444f2a6a7f Refactor remaining UserObjectGeometry build processes 2024-05-17 14:57:58 +01:00
nmannall
1d7b5ff0f9 Refactor AddGress UserObject build process 2024-05-17 14:05:14 +01:00
nmannall
07052347de Setup UserObjectGeometry to build using a Model
These now need to build from a model as they access materials from the
Model class
2024-05-17 13:41:48 +01:00
nmannall
6c82f237b2 Refactor PMLCFS UserObject build process 2024-05-17 13:19:16 +01:00
nmannall
567f567891 Refactor GeometryObjectsWrite UserObject build process 2024-05-17 12:23:19 +01:00
nmannall
fe87ec29a9 Refactor GeometryViews UserObject build process 2024-05-17 12:12:17 +01:00
nmannall
1e862ad355 Refactor remaining mixingmodels UserObject build processes 2024-05-17 12:05:02 +01:00
nmannall
7544a84e8c Refactor SoilPeplinski UserObject build process
Move mixingmodels from FDTDGrid to Model class
2024-05-17 12:00:36 +01:00
nmannall
437ca34470 Refactor Dispersion UserObjects build processes 2024-05-17 11:55:23 +01:00
nmannall
633e815d58 Access subgrids from Model not FDTDGrid 2024-05-17 11:45:31 +01:00
nmannall
d7765cac28 Refactor Materials UserObject build process 2024-05-17 11:43:19 +01:00
nmannall
7a35bac24b Refactor Snapshot UserObject build process 2024-05-17 11:37:49 +01:00
nmannall
98ee9b5328 Refactor RxArray UserObject build process 2024-05-17 10:57:31 +01:00
nmannall
3db6ac0181 Refactor Rx UserObject build process 2024-05-17 10:55:29 +01:00
nmannall
888e33125c Refactor TransmissionLine UserObject build process 2024-05-17 10:50:47 +01:00
nmannall
5834be5ce1 Refactor MagneticDipole UserObject build process 2024-05-17 10:43:02 +01:00
nmannall
e0b6dba9b0 Refactor HertzianDipole UserObject build process 2024-05-17 10:37:55 +01:00
nmannall
bb5fd172c8 Refactor VoltageSource UserObject
Source now contains a Waveform not a waveform ID
2024-05-17 10:31:31 +01:00
nmannall
7d2b553b55 Refactor Waveform UserObject 2024-05-16 14:57:02 +01:00
nmannall
d8d3830d76 Refactor ExcitationFile UserObject
For now, left waveforms inside FDTDGrid because for a user defined wave,
the time array may be created based on the dt of the grid.
2024-05-16 14:51:26 +01:00
craig-warren
23c88cee25 Added averaging check for API to convert y/n to True/False 2024-05-16 12:59:36 +01:00
nmannall
644bd53a4a Make UserInput generic 2024-05-15 17:29:28 +01:00
nmannall
a31be536d6 Begin moving subgrids into Model class 2024-05-15 16:27:03 +01:00
nmannall
99dd5f7cb6 Remove generic typing from numpy arrays
Need to use NDArray from numpy.typing in order to use generics
2024-05-15 15:52:37 +01:00