Working through the assignment

The assignment develops a calculation by connecting a physical quantity to its equation, choosing a numerical representation, and testing whether the implementation behaves as intended. As you write your program, keeping those connections visible will help you understand an unexpected result and explain what each part of the calculation contributes.

Your own reduced radial implementation provides the common preparation: it develops the quadrature, operator, and SCF reasoning that you will later use with FLODI in the final investigations. These guides build on that preparation by explaining the library’s operations and the conditions under which they can be combined. Keep the assignment alongside them for the model equations, numerical settings, stopping criteria, and questions that define your investigation.

Find the right guide

When you need to…

Understand first

Read

Transfer reduced radial reasoning to FLODI

The stored function and its integration measure

Representations and normalization

Describe an atom or a two-centre geometry

Coordinates, cell centres, and physical domain size

Choose and inspect a grid

Sample an orbital, density, or local potential

Fields, arrays, and face values

Functions, arrays, and fields and Boundary conditions belong to the operation

Evaluate norms and matrix elements

Volume weights and complex conjugation

Integrals, norms, and expectations

Apply a kinetic or electrostatic operation

The input field, its boundary, and the source convention

Apply a Laplacian and From a source to a potential

Update an orbital in a fixed operator

Local potentials, complete actions, and residuals

Solve a fixed eigenproblem

Begin with a tool check

Begin by running Your first fields in a fresh environment, then choose a reference problem that isolates the operation you are about to use. The Gaussian integral examines quadrature, its known Laplacian examines differentiation, its potential tests Poisson, and the finite-ball modes provide an eigensolver reference. Each topic guide includes a complete script so that you can investigate one operation at a time.

Once a reference problem behaves as expected, you have evidence that you understand that interface and its conventions. Your atomic or molecular model will still need checks of normalization, electron counting, operator consistency, and convergence, but you can now approach those with a smaller set of uncertainties. When something changes unexpectedly, return to the smallest calculation that can distinguish the plausible causes before adding another layer of code.

Keep the mathematical roles explicit

A quantity’s name can help preserve the connection between code and mathematics. Orbitals, densities, local potentials, operator actions, and energies may all involve arrays, yet they enter different expressions and carry different units. Recording that role and the normalization convention when you first implement a quantity makes later combinations easier to inspect.

This becomes especially useful when an operator depends on a source. The input defines the fixed operator supplied to the eigensolver, so the returned eigenpair belongs to that operator. Rebuilding it from the output creates a different calculation until self-consistency is established. Keeping the input and output roles explicit helps you interpret each check using the equations in your assignment.

Plan the evidence alongside the program

Saving the inputs and diagnostics as a run develops gives you the evidence needed to interpret it later. Include the model, grid, convergence settings, and termination status alongside the results. A quick reference check can then be repeated after a code change, while longer investigations can keep their numerical data separate from plotting so that a revised figure does not require another solve.

A comparison becomes informative when you can say what stayed fixed and what changed. Finer cells, a larger domain, and a tighter iterative tolerance probe different sources of error, so record them in a way that preserves that distinction. Retaining an explicit failure label also prevents a run that did not converge from appearing as an ordinary point in a parameter study.

Explain the calculation in your own words

As a final check of your understanding, take an operator call and explain its input, output, boundary condition, and the equation it approximates. Then connect a reported result to the comparison supporting its precision and to the physical approximation that still limits the model. Being able to follow that path from a line of code to a scientific conclusion is the purpose of the investigation: the assignment and the course textbook provide its questions, while the library reference helps you express and inspect the implementation.