Skip to content

Nl restructuring#89

Open
myrta wants to merge 112 commits intomasterfrom
nl-restructuring
Open

Nl restructuring#89
myrta wants to merge 112 commits intomasterfrom
nl-restructuring

Conversation

@myrta
Copy link
Member

@myrta myrta commented Jan 8, 2026

I create the Xn_from_signal abstract python class and a set of derived classes for extracting nonlinear susceptibilities and conductivities from the macroscopic time-dependent polarization $P$ and current $J$.
This is the start for rationalizing the nl part which has grown following need. Code which initiallly was translated from fortran ypp, was copied to a new file and modified to add new functionalities since the structure was very similar. This change is an attempt to highlight/force that structure even though keeping a file for each functionality.
Documentation is drafted in in Xn_from_signal_doc.md

attacc and others added 30 commits May 16, 2025 15:17
…f multiple runs to extract response

	new file:   yambopy/nl/sin_analysis.py => class for analysis of multiple runs with monochromatic signal to extract response
Myrta and others added 27 commits January 15, 2026 11:05
	modified:   yambopy/nl/freqmix_analysis.py
	modified:   yambopy/nl/nl_analysis.py
	modified:   yambopy/nl/pulse_analysis.py
	modified:   yambopy/nl/sin_analysis.py

Moved get_sampling as common method in nl_analysis.py and
created the abstract method set_sampling to get the specific range/sampling number
Upadated documentation to be consistent with changes introduced in the code
Bug fixes in excitonradiativelifetimes.py
Copy link
Contributor

@attacc attacc left a comment

Choose a reason for hiding this comment

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

Branch tested and perfectly working.
It also fixes a but in the sum-frequency extrapolation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants