@@ -2139,17 +2139,6 @@ class Simulation(AbstractYeeGridSimulation):
2139
2139
gt = 0.0 ,
2140
2140
le = 1.0 ,
2141
2141
)
2142
-
2143
- precision : Literal ["hybrid" , "double" ] = pydantic .Field (
2144
- "hybrid" ,
2145
- title = "Floating-point Precision" ,
2146
- description = "Floating point precision to use in the computations. By default, Tidy3D uses "
2147
- "a hybrid approach that offers a good balance of speed and accuracy for almost all "
2148
- "simulations. However, for large simulations (or simulations with a long run time), "
2149
- "where very high accuracy is needed, the precision can be set to double everywhere. "
2150
- "Note that this doubles the FlexCredit cost of the simulation." ,
2151
- )
2152
-
2153
2142
"""The Courant-Friedrichs-Lewy (CFL) stability factor :math:`C`, controls time step to spatial step ratio. A
2154
2143
physical wave has to propagate slower than the numerical information propagation in a Yee-cell grid. This is
2155
2144
because in this spatially-discrete grid, information propagates over 1 spatial step :math:`\\ Delta x`
@@ -2222,6 +2211,24 @@ class Simulation(AbstractYeeGridSimulation):
2222
2211
* `Numerical dispersion in FDTD <https://www.flexcompute.com/fdtd101/Lecture-8-Numerical-dispersion-in-FDTD/>`_
2223
2212
"""
2224
2213
2214
+ precision : Literal ["hybrid" , "double" ] = pydantic .Field (
2215
+ "hybrid" ,
2216
+ title = "Floating-point Precision" ,
2217
+ description = "Floating point precision to use in the computations." ,
2218
+ )
2219
+ """
2220
+ By default, Tidy3D uses
2221
+ a hybrid approach that offers a good balance of speed and accuracy for almost all
2222
+ simulations. However, for large simulations (or simulations with a long run time),
2223
+ where very high accuracy is needed, the precision can be set to double everywhere.
2224
+ Note that this doubles the FlexCredit cost of the simulation. Note that this argument
2225
+ affects not only the fields in the time stepping, but also the the structure
2226
+ discretization on the grid. Thus, results stored in a ``PermittivityMonitor`` or a
2227
+ ``ModeSolverMonitor`` can be affected. For the latter, note also that the precision set
2228
+ here affects the structure discretization, and is independent from the
2229
+ ``ModeSpec.precision`` argument, which only affects the eigenvalue solver.
2230
+ """
2231
+
2225
2232
lumped_elements : tuple [LumpedElementType , ...] = pydantic .Field (
2226
2233
(),
2227
2234
title = "Lumped Elements" ,
0 commit comments