Skip to content

Commit

Permalink
added magnetization density estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
kayahans committed Dec 4, 2024
1 parent 27d7b6a commit f93b98d
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions nexus/lib/qmcpack_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
# coefficient, hamiltonian, coulomb, constant, pseudopotential,#
# pseudo, mpc, localenergy, energydensity, reference_points, #
# spacegrid, origin, axis, chiesa, density, nearestneighbors, #
# neighbor_trace, dm1b, spindensity, structurefactor, init, #
# scalar_traces, array_traces, particle_traces, traces, loop, #
# linear, cslinear, vmc, dmc. #
# neighbor_trace, dm1b, spindensity, magnetizationdensity, #
# structurefactor, init, scalar_traces, array_traces, #
# particle_traces, traces, loop, linear, cslinear, vmc, dmc. #
# #
# QIxmlFactory #
# Class supports comprehension of XML elements that share the #
Expand Down Expand Up @@ -2225,6 +2225,14 @@ class spindensity(QIxml):
identifier = 'name'
#end class spindensity

class magnetizationdensity(QIxml):
tag = 'estimator'
attributes = ['type','name','report']
parameters = ['dr','grid','center','corner','integrator','samples']
write_types = obj(report=yesno)
identifier = 'name'
#end class magnetizationdensity

class structurefactor(QIxml):
tag = 'estimator'
attributes = ['type','name','report']
Expand Down Expand Up @@ -2349,6 +2357,7 @@ class back_propagation(QIxml):
nearestneighbors = nearestneighbors,
dm1b = dm1b,
spindensity = spindensity,
magnetizationdensity = magnetizationdensity,
structurefactor = structurefactor,
force = force,
forwardwalking = forwardwalking,
Expand Down Expand Up @@ -2709,7 +2718,7 @@ class gen(QIxml):
correlation,coefficients,loop,linear,cslinear,vmc,dmc,vmc_batch,dmc_batch,linear_batch,
atomicbasisset,basisgroup,init,var,traces,scalar_traces,particle_traces,array_traces,
reference_points,nearestneighbors,neighbor_trace,dm1b,
coefficient,radfunc,spindensity,structurefactor,
coefficient,radfunc,spindensity,magnetizationdensity,structurefactor,
sposet,bspline_builder,composite_builder,heg_builder,include,
multideterminant,detlist,ci,mcwalkerset,csf,det,
optimize,cg_optimizer,flex_optimizer,optimize_qmc,wftest,kspace_jastrow,
Expand Down Expand Up @@ -2915,6 +2924,9 @@ class gen(QIxml):
spindensity.defaults.set(
type='spindensity',name='SpinDensity'
)
magnetizationdensity.defaults.set(
type='magnetizationdensity',name='MagnetizationDensity'
)
skall.defaults.set(
type='skall',name='skall',source='ion0',target='e',hdf5=True
)
Expand Down

0 comments on commit f93b98d

Please sign in to comment.