Professional Documents
Culture Documents
Students Bio
• Zcd_model class is used to build the zcd model for further use so that user can utilize the block
created and not modify any internal connections.
• In ZCD_exp class the user can connect sine voltage and voltage sensor to see the input and output
waveforms.
Theory :
2.
1.
3.
Dragging components.
• OPAMP - Modelica > Electrical > Analog > Ideal > IdealizedOpAmpLimted
• RESISTOR - Modelica > Electrical > Analog > Basic > Resistor (3 times)
• GROUND - Modelica > Electrical > Analog > Basic > Ground
• SineVoltage - Modelica > Electrical > Analog > Sources > SineVoltage
• VoltageSensor - Modelica > Electrical > Analog > Sensors > VoltageSensor
After dragging the components connect them as follows :
Connections and parameters.
• After connecting the components edit the parameters in the Edit Modelica Parameters window.
• Also propagate the values of resistor and Vps and Vns of opamp.
Create icon.
• After editing the parameters create an icon for the Zcd_model
One can edit the graphic properties from Modelica Graphics Properties menu
• After creating an icon insert a picture
Output waveform:
Input waveform:
• To compare the input and output voltage graphs add the output plot to the input plot.
Input and output waveforms:
References