Skip to content

Commit

Permalink
improved chapter 2
Browse files Browse the repository at this point in the history
  • Loading branch information
simongravelle committed Apr 20, 2024
1 parent d635279 commit b1f3498
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docs/source/chapters/chapter2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ Calculate LJ units prefactors

.. code-block:: python
self.calculate_LJunits_prefactors()
def __init__(self,
(...)
super().__init__(*args, **kwargs)
self.calculate_LJunits_prefactors()
.. container:: justify

Expand Down Expand Up @@ -206,10 +209,23 @@ Nondimensionalize units
corresponding reference value. The *zip()* function allows us to loop over
all three lists at once.

.. container:: justify

Let us call the *nondimensionalize_units_0* from the *__init__* method:

.. code-block:: python
def __init__(self,
(...)
self.calculate_LJunits_prefactors()
self.nondimensionalize_units_0()
.. container:: justify





self.nondimensionalize_units_0()
self.calculate_cross_coefficients()

.. code-block:: python
Expand Down

0 comments on commit b1f3498

Please sign in to comment.