15#include <plask/python.hpp>
16#include <plask/common/fem/python.hpp>
20#include "../capacitance2d.hpp"
23template <
typename __Class__>
26 format(
u8"{0}(name=\"\")\n\n"
27 u8"Finite element AC electric solver for {1} geometry.",
30 py::init<std::string>(py::arg(
"name") =
""));
31 METHOD(compute, compute,
u8"Run calculations");
33 u8"Get total current flowing through active region (mA)\n\n"
35 u8" nact (int): number of the active region\n"
36 u8" active (bool): if true, the active current (in phase with the voltage)\n"
37 u8" is returned, otherwise the total current is returned\n\n"
39 u8" complex: computed total current (mA)",
40 (py::arg(
"nact") = 0, py::arg(
"active") =
false));
45 BOUNDARY_CONDITIONS(voltage_boundary,
u8"Boundary conditions of the first kind (constant potential)");
46 RW_PROPERTY(frequency, getFrequency, setFrequency,
u8"AC modulation frequency (MHz)");
48 METHOD(
get_S11, getS11,
u8"Get scattering parameter <i>S</i><sub>11</sub> at the current frequency\n\n"
50 u8" Z0 (complex): reference impedance (default 50 Ω)\n\n"
52 u8" complex: computed S11 parameter",
53 (py::arg(
"Z0") = 50.));
56 solver.add_property(
"empty_elements", &__Class__::getEmptyElements, &__Class__::setEmptyElements,
57 "Should empty regions (e.g. air) be included into computation domain?");