<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Dear Laurent,
<div class=""><br class="">
</div>
<div class="">I am not fully sure about the details of your implementation and I am not commenting on the best place to put your keywords (as Paolo said, Environ adopts an external file for its own input). I mostly wanted to mention that Environ allows you
to introduce an external pressure into the system. With the right settings this could be used to apply a compressive pressure on rigid planes above or below a slab or, using a cylindrical symmetry, on a nanowire (but also to a isolated system, as per Cococcioni
et al, PRL 10.1103/PhysRevLett.94.145501).</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">Oliviero</div>
<div class=""> <br class="">
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Oliviero Andreussi<br class="">
--<br class="">
Assistant Professor<br class="">
Department of Physics<br class="">
University of North Texas<br class="">
<a href="mailto:oliviero.andreussi@unt.edu" class="">Email: oliviero.andreussi@unt.edu</a> </div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Phone: +1-(940)-369-5316<br class="">
Skype: olivieroandreussi<br class="">
Web: <a href="https://www.materialab.org" class="">https://www.materialab.org</a></div>
</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On May 27, 2021, at 3:04 PM, Paolo Giannozzi <<a href="mailto:paolo.giannozzi@uniud.it" class="">paolo.giannozzi@uniud.it</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Dear Laurent<br class="">
<br class="">
the proliferation of input variables in QE is an old and known problem. I am not sure what the best solution should be, though. One possibility I would consider is to read the needed variables from a separate file.<br class="">
If I remember correctly this is what the "Environ" library does.<br class="">
Another one is to extend the existing ATOMIC_FORCES card, that currently supports only a list of forces, to cover your case as well.<br class="">
<br class="">
Paolo<br class="">
<br class="">
On 27/05/2021 10:00, Laurent Pizzagalli wrote:<br class="">
<blockquote type="cite" class="">Dear Dr. Giannozzi,<br class="">
I write to you concerning the implementation of an external force field in quantum espresso. The motivation is the investigation of the mechanical properties of nanoparticles, especially in the plastic regime, obtained by uniaxial compression. The implementation
is not complicated, since you (the developers) had already planned this potentiality in the file 'plugin_ext_forces.f90'.<br class="">
Actually, i already made the implementation in cp.x, but in a quick way, in a local copy of the code. Since it is successful, I would like to do it properly, merging it with the development version using git. I got almost all the information I need in the developer
manual. But I still have one question, concerning the general organization of the input. Right now, I implemented only one kind of force field, fully repulsive. It allows for compressing the nanoparticle between two planes. Six keywords are needed, one for
the activation of the force field, four to define the position of the planes and the increment for their displacements at each timestep, and a last one to define the strength of the repulsion. My question is: what would be the best way to organize these keywords?
Originally, I put all of these into the &IONS namelist. Another option would be in the &SYSTEM namelist. And finally, maybe it would be better to create a specific NAMELIST to include these keywords (something like &EXTFF)? I also plan to implement another
force field (including an attractive interaction), which would require other keywords. So the creation of a specific NAMELIST seems the best option in my opinion. But I would like to have yours before proceeding.<br class="">
Best regards<br class="">
Laurent<br class="">
</blockquote>
<br class="">
-- <br class="">
Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br class="">
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br class="">
Phone +39-0432-558216, fax +39-0432-558222<br class="">
_______________________________________________<br class="">
developers mailing list<br class="">
<a href="mailto:developers@lists.quantum-espresso.org" class="">developers@lists.quantum-espresso.org</a><br class="">
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.quantum-espresso.org%2Fmailman%2Flistinfo%2Fdevelopers&data=04%7C01%7Coliviero.andreussi%40unt.edu%7Cb9b4175eea884b881cce08d9214ac4da%7C70de199207c6480fa318a1afcba03983%7C0%7C0%7C637577427286515016%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=X49jcc%2FVhCsjeq%2BzOrROZJn3TLla6KVzog0P2JE9TLs%3D&reserved=0<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>