circuit-json 0.0.533 → 0.0.534
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1321 -1
- package/dist/index.mjs +55 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4818,6 +4818,59 @@ var spice_simulation_options = z207.object({
|
|
|
4818
4818
|
abstol: z207.union([z207.number(), z207.string()]).optional(),
|
|
4819
4819
|
vntol: z207.union([z207.number(), z207.string()]).optional()
|
|
4820
4820
|
}).describe("SPICE solver options for a simulation experiment");
|
|
4821
|
+
var pcb_spice_channel = z207.object({
|
|
4822
|
+
reduction: z207.union([
|
|
4823
|
+
z207.literal("routed-copper"),
|
|
4824
|
+
z207.literal("straightened-stages")
|
|
4825
|
+
]),
|
|
4826
|
+
sections: z207.number().int().min(1).max(128),
|
|
4827
|
+
lanes: z207.array(
|
|
4828
|
+
z207.object({
|
|
4829
|
+
name: z207.string().min(1),
|
|
4830
|
+
driver_source_port_id: z207.string().min(1),
|
|
4831
|
+
receiver_source_port_id: z207.string().min(1)
|
|
4832
|
+
})
|
|
4833
|
+
).min(1).max(3),
|
|
4834
|
+
reference_source_port_id: z207.string().min(1),
|
|
4835
|
+
passive_source_component_ids: z207.array(z207.string().min(1)).optional(),
|
|
4836
|
+
extraction: z207.object({
|
|
4837
|
+
minimum_frequency_hz: z207.number().finite().positive(),
|
|
4838
|
+
maximum_frequency_hz: z207.number().finite().positive(),
|
|
4839
|
+
model_frequency_hz: z207.number().finite().positive(),
|
|
4840
|
+
filaments: z207.number().int().positive(),
|
|
4841
|
+
refinement_filaments: z207.number().int().positive(),
|
|
4842
|
+
convergence_tolerance: z207.number().finite().positive(),
|
|
4843
|
+
capacitance_tolerance: z207.number().finite().positive(),
|
|
4844
|
+
reciprocity_tolerance: z207.number().finite().positive(),
|
|
4845
|
+
dc_resistance_tolerance: z207.number().finite().positive(),
|
|
4846
|
+
max_panel_length_mm: z207.number().finite().positive(),
|
|
4847
|
+
ground_mesh_size_mm: z207.number().finite().positive().optional()
|
|
4848
|
+
}).refine(
|
|
4849
|
+
(extraction) => extraction.refinement_filaments > extraction.filaments,
|
|
4850
|
+
{
|
|
4851
|
+
path: ["refinement_filaments"],
|
|
4852
|
+
message: "refinement_filaments must be greater than filaments"
|
|
4853
|
+
}
|
|
4854
|
+
),
|
|
4855
|
+
relative_permittivity: z207.number().finite().positive().optional(),
|
|
4856
|
+
via_plating_thickness_mm: z207.number().finite().positive().optional(),
|
|
4857
|
+
via_equivalent_width_mm: z207.number().finite().positive().optional(),
|
|
4858
|
+
omit_through_via_stubs: z207.boolean().optional(),
|
|
4859
|
+
straightened_stage_profiles: z207.record(
|
|
4860
|
+
z207.object({
|
|
4861
|
+
spacing_mm: z207.number().finite().positive(),
|
|
4862
|
+
relative_permittivity: z207.number().finite().positive(),
|
|
4863
|
+
return: z207.object({
|
|
4864
|
+
width_mm: z207.number().finite().positive(),
|
|
4865
|
+
thickness_mm: z207.number().finite().positive(),
|
|
4866
|
+
length_factor: z207.number().finite().positive(),
|
|
4867
|
+
center_y_mm: z207.number().finite(),
|
|
4868
|
+
center_z_mm: z207.number().finite()
|
|
4869
|
+
})
|
|
4870
|
+
})
|
|
4871
|
+
).optional()
|
|
4872
|
+
});
|
|
4873
|
+
expectTypesMatch(true);
|
|
4821
4874
|
var simulation_experiment = z207.object({
|
|
4822
4875
|
type: z207.literal("simulation_experiment"),
|
|
4823
4876
|
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
@@ -4831,6 +4884,7 @@ var simulation_experiment = z207.object({
|
|
|
4831
4884
|
start_time_ms: ms.optional(),
|
|
4832
4885
|
end_time_ms: ms.optional(),
|
|
4833
4886
|
spice_options: spice_simulation_options.optional(),
|
|
4887
|
+
pcb_spice_channel: pcb_spice_channel.optional(),
|
|
4834
4888
|
dc_sweep_voltage_source_id: z207.string().optional(),
|
|
4835
4889
|
dc_sweep_current_source_id: z207.string().optional(),
|
|
4836
4890
|
dc_sweep_start: z207.number().optional(),
|
|
@@ -6305,6 +6359,7 @@ export {
|
|
|
6305
6359
|
pcb_smtpad_pill,
|
|
6306
6360
|
pcb_solder_paste,
|
|
6307
6361
|
pcb_soldermask_opening,
|
|
6362
|
+
pcb_spice_channel,
|
|
6308
6363
|
pcb_stackup,
|
|
6309
6364
|
pcb_stackup_copper_layer,
|
|
6310
6365
|
pcb_stackup_dielectric_layer,
|