WOLFRAM SYSTEM MODELER
This is a component based implementation of the electric circuit described and implemented using blocks here.
A simulation of the model gives the same result as for the block based version:
This example shows the benefit of using components rather than blocks.
For a step by step tutorial see Component-Based—Simple Circuit.
A component based model of an electrical circuit with an additional component