Home > Community > Forums > PCB Design > how to simulate time varying capacitance in Orcad ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to simulate time varying capacitance in Orcad ? 

Last post Thu, Nov 15 2012 7:11 AM by reddytinku. 9 replies.
Started by reddytinku 07 Nov 2012 05:25 AM. Topic has 9 replies and 1901 views
Page 1 of 1 (10 items)
Sort Posts:
  • Wed, Nov 7 2012 5:25 AM

    • reddytinku
    • Not Ranked
    • Joined on Wed, Nov 7 2012
    • Posts 7
    • Points 95
    how to simulate time varying capacitance in Orcad ? Reply

     Hi

    I have a circuit which has piece-wise time varying period capacitance- how to simulate this type of circuit in OrCAD?

    Thank You

    • Post Points: 20
  • Wed, Nov 7 2012 6:35 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,389
    • Points 23,665
    Re: how to simulate time varying capacitance in Orcad ? Reply
    Use a Voltage controlled Capacitor, VC_CAP, and drive it with a VPWL.
    • Post Points: 20
  • Wed, Nov 7 2012 1:38 PM

    • reddytinku
    • Not Ranked
    • Joined on Wed, Nov 7 2012
    • Posts 7
    • Points 95
    Re: how to simulate time varying capacitance in Orcad ? Reply

     hi thanks for the reply

    i looked in to VC_CAP and VPWL. I have one more doubt, VPWL has input for only 8 time instances , how to increase these and howto make it as a periodic source ? what wil be the VPWL value after T8 th time ?

     

    http://postimage.org/image/8nwx1k3vf/

     

    Thank You

    • Post Points: 20
  • Thu, Nov 8 2012 1:45 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,389
    • Points 23,665
    Re: how to simulate time varying capacitance in Orcad ? Reply
    VPWL uses linear interpolation between the specified points, the "T8" value will remain till the end of the simulation,. If you need more points, use a VPWL_FILE source, this takes time / value tab demilited pairs from a file. There probably is some limit to the number of points but it must be large. Take care with manually edited data that time remains "monotonic", always going forwards, the simulator is going to baulk at trying to reverse time! You can get an idea of the required format by exporting results from the Probe window, select / display a single waveform in the Probe window, from the menu, Edit>Copy, open a text editor and Edit>Paste into the text editor, the text values for the points in the waveform will be pasted as text.
    • Post Points: 20
  • Fri, Nov 9 2012 11:18 AM

    • reddytinku
    • Not Ranked
    • Joined on Wed, Nov 7 2012
    • Posts 7
    • Points 95
    Re: how to simulate time varying capacitance in Orcad ? Reply

     thanks :)

    got the concept. can we enter the time and voltage values in a simple text document or do we need to use any text editor ? how to upload this file to the VPWL_FILE source ? I tried through property editor of it, bt couldnt able to do it

    And my Orcad doesnt has Spice_elem library(which has VAR_CAP) so I downloaded the library and added to the Orcad capture, so when I started to run the circuit I am getting an  error  ''ERROR(ORPSIM-15108): Subcircuit AWBVC_CAP used by X_U1 is undefined '', how to over come this ?

    Thank you very much for your time, pease forgive me if I am troubling you.

     

    • Post Points: 20
  • Fri, Nov 9 2012 11:59 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,389
    • Points 23,665
    Re: how to simulate time varying capacitance in Orcad ? Reply

    Any editor that makes "plain" as apposed to "formatted" test will work, like Notepad, NOT Word. VPWL_FILE has a File property, this takes the full path and file name for the pwl file created, you can use .\pwlfile.txt to use a file called pwlfile.txt in the current directory.

    It sounds like you have the graphical library, OLB, for the spice_elem, you need the simulation library, LIB, and then add it to the Simulation Profile libraries so that the simualtor can find it.

    • Post Points: 50
  • Sun, Nov 11 2012 7:16 AM

    • alokt
    • Top 25 Contributor
    • Joined on Fri, Aug 22 2008
    • Noida, Uttar Pradesh
    • Posts 241
    • Points 3,470
    Re: how to simulate time varying capacitance in Orcad ? Reply

    Which version of OrCAD you are running? Can you also share the URL for download (for SPICE_ELEM)

    • Post Points: 20
  • Tue, Nov 13 2012 6:30 AM

    • reddytinku
    • Not Ranked
    • Joined on Wed, Nov 7 2012
    • Posts 7
    • Points 95
    Re: how to simulate time varying capacitance in Orcad ? Reply

     @oldmouldy Ya it is a OLB file , i found  LIB file and I added it . Its working good now thanks

     

    @alokt  I am using OrCAD 16.5 version. I downloaded the file from     http://www.2shared.com/file/PQ7dtdA0/spice_elem.html    it is a OLB file

    • Post Points: 5
  • Wed, Nov 14 2012 3:35 PM

    • reddytinku
    • Not Ranked
    • Joined on Wed, Nov 7 2012
    • Posts 7
    • Points 95
    Re: how to simulate time varying capacitance in Orcad ? Reply
    working
    • Post Points: 5
  • Thu, Nov 15 2012 7:11 AM

    • reddytinku
    • Not Ranked
    • Joined on Wed, Nov 7 2012
    • Posts 7
    • Points 95
    Re: how to simulate time varying capacitance in Orcad ? Reply
    working
    • Post Points: 5
Page 1 of 1 (10 items)
Sort Posts:
Started by reddytinku at 07 Nov 2012 05:25 AM. Topic has 9 replies.