Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 2D magnetostatics branch into serac #63

Open
wants to merge 74 commits into
base: serac
Choose a base branch
from

Commits on Jun 29, 2022

  1. Configuration menu
    Copy the full SHA
    861269f View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2022

  1. Configuration menu
    Copy the full SHA
    7bd6bb9 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Configuration menu
    Copy the full SHA
    c1a4c24 View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    2951b79 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f5f39b9 View commit details
    Browse the repository at this point in the history
  4. ninja format

    tuckerbabcock committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    f82025a View commit details
    Browse the repository at this point in the history
  5. magnetostatic_box2d test works, is significantly more performant than…

    … the 3d version, and can actually converge a nonlinear residual
    tuckerbabcock committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    d3777bf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2ddd2cc View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

  1. Configuration menu
    Copy the full SHA
    782ad87 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. Configuration menu
    Copy the full SHA
    d822a3f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa14d78 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    07ef8bd View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2022

  1. added new integrator to calculate force/torques that works for 2D and…

    … 3D. Integrator approach follows a more straightforward AD approach than the previous integrator, using hand written AD of the MagneticEnergy integrator
    tuckerbabcock committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    1cfc045 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2022

  1. Configuration menu
    Copy the full SHA
    59acdc3 View commit details
    Browse the repository at this point in the history
  2. updated torque outut to use new ForceIntegrator2 that works for 2D an…

    …d 3D. Once it is differentiated, I will rename it to ForceIntegrator and remove the old one. Set it up so that magnetic energy could be computed on a per attribute basis, so you could calculate just the energy in the airgap for example. Now only add the current density integrator to the winding attributes so that it hopefully runs more efficiently
    tuckerbabcock committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    3fcea8a View commit details
    Browse the repository at this point in the history
  3. make format

    tuckerbabcock committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    d4a800c View commit details
    Browse the repository at this point in the history
  4. change format workflow

    tuckerbabcock committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    7ba001a View commit details
    Browse the repository at this point in the history
  5. change format workflow

    tuckerbabcock committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    9f0fcb1 View commit details
    Browse the repository at this point in the history
  6. change format workflow

    tuckerbabcock committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    8f92345 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b5a1e4f View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. added new ForceIntegrator3 that works for 2D and 3D em problems, hope…

    …fully easier to differentiate than ForceIntegrator2
    tuckerbabcock committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    75af982 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. finished differentiating ForceIntegrator3 that handles 2D and 3D and …

    …is differentiated wrt the mesh and the state
    tuckerbabcock committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    fece2cd View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    ae3dd59 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58c9514 View commit details
    Browse the repository at this point in the history
  4. removing ForceIntegrator2 (which was used to test a new implementatio…

    …n but didn't end up working)
    tuckerbabcock committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    6a77ee9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    407069a View commit details
    Browse the repository at this point in the history
  6. make format

    tuckerbabcock committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    2364c22 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. updated L2CurlMagnitudeProjection to internally handle 2D cases, and …

    …make sure differentiation of the 2D cases works correctly
    tuckerbabcock committed Aug 18, 2022
    Configuration menu
    Copy the full SHA
    6c13e05 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2022

  1. Added RelaxedNewton method that uses a linesearch to improve converge…

    …nce. Added LineSearch abstract class, with a BacktrackingLineSearch implementation. Added tests for RelaxedNewton using BacktrackingLineSearch on a simple 2D Rosenbrock minimization problem
    tuckerbabcock committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    33f63aa View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    fc0ba85 View commit details
    Browse the repository at this point in the history
  3. rework material library and reluctivity coefficients. We can now spec…

    …ify material data in the options dictionary, and handle multiple different nonlinear reluctivity models at once.
    tuckerbabcock committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    c80e58c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b32d3cb View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2022

  1. Configuration menu
    Copy the full SHA
    066b0d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    621158e View commit details
    Browse the repository at this point in the history
  3. fix linesearch test on linux. For some reason switching from GMRES to…

    … CG solved the issue we were seeing
    tuckerbabcock committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    f84864e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0de877e View commit details
    Browse the repository at this point in the history
  5. make format

    tuckerbabcock committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    4a1adac View commit details
    Browse the repository at this point in the history
  6. change Phi to own a copy of the calcRes function instead of owning a …

    …reference to it to address address sanitizer error
    tuckerbabcock committed Aug 23, 2022
    Configuration menu
    Copy the full SHA
    e3b8a29 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. Configuration menu
    Copy the full SHA
    6cd70bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    10ea296 View commit details
    Browse the repository at this point in the history
  3. make format

    tuckerbabcock committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    e2fd4ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4551b3d View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. Configuration menu
    Copy the full SHA
    ba4fdd3 View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    6351b0a View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. added reverse mode mesh sensitivity integrator for 2D magnetic source…

    … linear form integrator and tested it
    tuckerbabcock committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    c79b9a4 View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    a32359d View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. differentiating various forgotten outputs, working on getting all Mot…

    …orModel outputs differentiated and verified
    tuckerbabcock committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    21198bb View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. finished differentiating 2D flux density transfer, average flux densi…

    …tiy calc, 2D flux density magnitude calc, and max flux magnitude calcs
    tuckerbabcock committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    604a883 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31ec4b2 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2022

  1. got all solver partials and totals working and passing through OpenMD…

    …AO. Residual partials wrt current density are a little bit hacky. Need to come up with a real way to take the derivative of an integrator wrt a coefficient, and then the coefficient wrt whatever, but haven't thought of a good way to do it yet
    tuckerbabcock committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    fdcbf18 View commit details
    Browse the repository at this point in the history
  2. still a few more things to differentiate that I had forgotten about. …

    …Working on the DC loss right now, all the integrators seem to work, but when used as an Output there are slight issues. Need to investigate further. I suspect the issue is inside of FunctionalOutput
    tuckerbabcock committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    956ab12 View commit details
    Browse the repository at this point in the history
  3. adding electromag output test that shows the derivative issue, with a…

    … 4th order finite difference check as well as the second order check to give confidence to the fact that the finite difference is correct
    tuckerbabcock committed Sep 16, 2022
    Configuration menu
    Copy the full SHA
    fb91b84 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. fixed DCLossFunctional derivatives. Issue was that mesh sens integrat…

    …or was using a different integration rule than the primal integrator. In testing the derivatives on the motor, realized that I needed to allow sensitivity integrators to be restricted to the same attributes that the primal integrators are restricted to. Make that change by renaming addSensitivityIntegrator to add*SensitivityIntegrator for Domain, InteriorFace, and Bdr integ types. Added pointer arg for optional attributes to restrict sens integrator to. Need to make the same change for residual sensitivity integrators.
    tuckerbabcock committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    4c07b2b View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    a68da12 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8be1086 View commit details
    Browse the repository at this point in the history
  4. make format

    tuckerbabcock committed Sep 19, 2022
    Configuration menu
    Copy the full SHA
    c93ef26 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f2b2727 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Configuration menu
    Copy the full SHA
    d122d90 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. extended support for IEAggregateFunctional to handle fields other tha…

    …n the field named state, and differentiated it wrt the input state and the mesh
    tuckerbabcock committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    28e067c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9adfcb8 View commit details
    Browse the repository at this point in the history
  3. added implementation of sensitivities for the actual IEAggregateFunci…

    …tonal output, and included tests for it
    tuckerbabcock committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    ba763fd View commit details
    Browse the repository at this point in the history
  4. added post-adjoint solve hook to do any sort of finalization steps. R…

    …emoved try-catch from AbstractSolvers calcOutput and output sensitivities methods. Previously they would catch and print the what of any exception thrown, now they will not intercept. This is to allow a NotImplementedException to be thrown further up the chain
    tuckerbabcock committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    ced8ffd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b7bd248 View commit details
    Browse the repository at this point in the history
  6. changed use of Adept for auto-diff in current and magnet source funct…

    …ions to be more efficient
    tuckerbabcock committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    b5c70a4 View commit details
    Browse the repository at this point in the history
  7. improving test coverage of EM solver related functionality. Specifica…

    …lly on output sensitivity verification
    tuckerbabcock committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    2b0129e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    072073e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e9338c7 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. minor changes calling terminal hook in derived PDE solvers, logging t…

    …emperature field in magnetostatic solver if it exists
    tuckerbabcock committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    17290eb View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    a9171b5 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2023

  1. Configuration menu
    Copy the full SHA
    379dfb7 View commit details
    Browse the repository at this point in the history
  2. make format

    tuckerbabcock committed Jan 28, 2023
    Configuration menu
    Copy the full SHA
    49963cf View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Configuration menu
    Copy the full SHA
    81952ad View commit details
    Browse the repository at this point in the history
  2. fix bug when computing core losses that would cause all core loss cal…

    …culations to depend on one peak flux value
    tuckerbabcock committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    1d3c45e View commit details
    Browse the repository at this point in the history
  3. make format

    tuckerbabcock committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    dd6e700 View commit details
    Browse the repository at this point in the history