Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3997646
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:25:38+00:00 2026-05-20T07:25:38+00:00

So I need to define the potential in python. I have infinite square well

  • 0

So I need to define the potential in python. I have infinite square well potential, and it has, in the middle the potential barrier.

For the barrier I have this:

    V_x = zeros([Npts],float)
for i in range(0,Npts,1):
    if x[i] > 0 and x[i]<width:
        V_x[i]=v0

Npts is the the length of the x, and x is defined as array of increasing values from xmin to xmax (x=arange(Xmin,Xmax+0.001,dx)).

How to include the infinite potential into this?

It has some length (let’s say from -100 to 100) and it has to behave like impenetrable wall (the function at the -100 and 100 has to be zero).

I could combine the barrier with this potential separately (e.g. V_b for the barrier, and V_p for the infinite potential and then the V_x could be V_x=V_b+V_p).

Do you think that could work? I have the problem defining that infinite potential…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:25:38+00:00Added an answer on May 20, 2026 at 7:25 am

    I would suggest just using a number for your infinite potential that is a few orders (3-4) of magnitude larger than your finite potential. It will not make much of a difference in the energies of your states to make it any larger. In fact, you’ll quickly be limited more by the precision of the floats used when solving the Hamiltonian. You really only need to set the ends to be ‘infinite’ so something like the following should work: V_x[0] = V_x[-1] = abs(v0)*10**4. Of course, you can set it to be larger if you want, but I don’t think that it will make much of a difference. If you aren’t setting the ends to be infinite, then why are you trying to solve for the value of your wave function in large portions of the region in which you know that the wave function will be zero?

    Also, be careful that your infinite potential isn’t of compararable magnitude to h-bar^2/2/m/delta_x^2 in the units that you are using. It’s all making the ‘infinite’ potential be a few orders of magnitude larger than both the finite potential and the kinetic energy terms in your Hamiltonian.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to define a calculated member in MDX (this is SAS OLAP, but
I need to define new UI Elements as well as data binding in code
I need to define an Interface which has to enforce certain operator overloading to
We need to define a conditional compilation symbol in a class library project. This
I need to define a new constant in Visual Studio. I explain: I have
I need help figuring out which Accessory Type Switch has been changed. I have
I need to define this function called total. total :: (Int -> Int) ->
I need to define the constant in the module that use the method from
I need to define a Wix file component that may not exist in certain
I need to define an appender for log4net in a way that I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.