In my first Electronics classes, we learned how to analyze a circuit with AC sources and ideal diodes but with only resistive elements. In such cases, the currents and voltages respond instantly to inputs (I mean, there's no lag). What we did was that, during the positive half cycle of the AC voltage source, we assumed the current was exiting from its positive terminal, and from there we imagined how the current would divide in each node as it traveled through the branches. I think this is the common way taught. However as soon as a capacitive or inductive element is added, currents and voltages can have lag, and a transient response exists. Therefore, in the positive half cycle of the AC voltage source, the current doesn't necessarily exits from its positive terminal at all instants during the half positive cycle. The \$i\$-\$v\$ characteristics of an ideal voltage source is \$v=v_s(t)\$ and \$i=\text{any value}\$.
My question is how can we analyze/solve a circuit with ideal diodes, AC sources, resistive elements, and energy-storage elements (L, C), in order to analytically obtain the expression for a voltage or current? I wasn't taught about that. My goal is to obtain an exact expression for a voltage or current. While I know using the ideal diode will actually give an approximate value, I'm asking for that model to simplify calculations. As an example, consider the following circuit, where each diode is ideal, \$R = 1 \text{ } \Omega\$, \$L = 1 \text{ H}\$, and \$v_s(t) = 12 \sin {2 \pi t} \text{ V}\$ (\$f = 1 \text{ Hz}\$), and the inductor is initially discharged. Let's suppose we want to solve for the inductor's current.
The current through the inductor, choosing the reference direction from node 2 to 4, and the current through D1, are the following according to LTspice.
Proposed solution
What I'm thinking to do is the following. In BJT circuits, in order to find its operating region, we initially assume the BJT is in active region, therefore we substitute it with its DC equivalent circuit in active region, then solve the circuit and compare if the assumption is correct. If it's correct, the analysis is done; if it's incorrect, we substitute it with the DC equivalent circuit in saturation region or cut-off region. Here I explain a bit more about this method.
So, I suppose that for diode circuits, we can also make an assumption and prove if it's correct or wrong. This answer describes the procedure I have in mind. However, since the source is AC and not DC, I think the solution we obtain will be valid only for half a cycle. So, we can not obtain the complete response for all \$t\$, but only up to the cycle we analyze. Is that correct?