-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
6589f44
to
8f02a92
Compare
d082a42
to
3ff070c
Compare
// 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; |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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
as currently cutoffs are used only in quantum espresso
* @param accuracyLevel {String}: "standard", "high", or "low" | ||
* @return {number}: if cutoff value present returns value else return 0 | ||
*/ | ||
_cutoffFromPseudoData = (data, cutoffEntity, accuracyLevel = "standard") => { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
No description provided.