Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyPRISM to RISM #23

Open
Riperedo opened this issue Jan 30, 2024 · 3 comments
Open

pyPRISM to RISM #23

Riperedo opened this issue Jan 30, 2024 · 3 comments

Comments

@Riperedo
Copy link

Hi, I'm new to the study of integral equations theories.
Can pyPRISM compute RISM site-site structures?

@tgartner
Copy link
Collaborator

Yes, provided that you appropriately specify your intramolecular correlation functions (omega)

@Riperedo
Copy link
Author

Riperedo commented Feb 29, 2024

Ok, so all I need is a well-defined omega. For example, in the book "Theory of Simple Liquids" by Hansen and McDonald, a section is dedicated to RISM. And for a molecule with intramolecular separation $L_{\alpha\beta}$ between sites $\alpha$ and $\beta$ we have

$ \hat{\omega}{\alpha\beta}(k) = \delta{\alpha\beta} + (1-\delta_{\alpha\beta})j_0(L_{\alpha\beta})$

Now, on the tutorial page, there are some examples where the setup before the actual calculus involves the definition of a specie "A", (or "B" and "C", ... depending on the components considered)

sys = pyPRISM.System(['A'],kT=1.0)
sys.domain = pyPRISM.Domain(dr=0.005,length=32768)
sys.diameter['A']      = 1.0
sys.potential['A','A'] = pyPRISM.potential.HardSphere()
sys.density['A']       = 0.8
sys.omega['A','A']     = pyPRISM.omega.SingleSite()
sys.closure['A','A']   = pyPRISM.closure.PY(apply_hard_core=True)

There is a part where the user can provide a numerical definition of omega, and pyPrism can do its best.

But I am still trying to understand, in the case of a dumbbell-shaped particle, if it must be entered as a monocomponent of two sites or two components with an omega defined as the book definition.

@tgartner
Copy link
Collaborator

tgartner commented Mar 1, 2024

You could do it either way, depending on whether or not you wanted to distinguish between the two sites in the dumbbell particle. If there was no reason to distinguish between them, then you could keep them as the same site type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants