Skip to content

SOF-7449: get suggested cutoffs from pseudos data #88

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

pranabdas
Copy link
Member

No description provided.

// if rho cutoff is not present, set it based on wfc cutoff
// if it is ultrasoft pseudopotential set rho cutoff 8 times
// that of wfc cutoff, otherwise 4 times that of wfc cutoff
const rhoMultiplier = data?.type === "us" ? 8 : 4;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should isolate this to a separate function, like - getDensityMultiplierByPseudoType

get defaultECUTWFC() {
if (["espresso", "qe"].includes(this.application.shortName)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the application

* @param accuracyLevel {String}: "standard", "high", or "low"
* @return {number}: if cutoff value present returns value else return 0
*/
_cutoffFromPseudoData = (data, cutoffEntity, accuracyLevel = "standard") => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be called - getCutoffFromMethodData to make it generic. Then inside PseudopotentialMethod redefined to use pseudo per the below.

* to 4 or 8 times that of wavefunction cutoff
* @return {Array<number>}: tuple of wavefunction and density cutoffs
*/
get _cutoffsFromPseudos() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the above - this function should go to PseudopotentialMethod

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

Successfully merging this pull request may close these issues.

2 participants