ode_ModelFuncs

Functions for creating PINN's in ODE solvers.

While available to user, not meant to be used. Instead interface through net_layers, net_units, and constraint parameters of solving functions detailed in "Main User Functions".

build_model(nr_layers, nr_units, summary=True)

Builds standard PINN in tensorflow

Parameters:
  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order1_IVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted inital values for first order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order2_IVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted inital values for second order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order3_IVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted inital values for third order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order4_IVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted inital values for fourth order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order5_IVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted inital values for fifth order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order12_BVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted boundary values for a first or second order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital boundary values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_hardConstraint_order3_BVP(inits, nr_layers, nr_units, summary=True)

Builds PINN with hard constrainted boundary values for third order ODE in tensorflow

Parameters:
  • inits (list) –

    List containing inital boundary values

  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_system2_IVP(nr_layers, nr_units, summary=True)

Builds PINN for solving two equations in tensorflow

Parameters:
  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model

build_model_system3_IVP(nr_layers, nr_units, summary=True)

Builds PINN for solving three equations in tensorflow

Parameters:
  • nr_layers (int) –

    Number of internal layer of network

  • nr_units (int) –

    Number of nodes per internal layer of network

  • summary (bool, default: True ) –

    decides whether summary of network is printed

Returns:
  • model( PINN ) –

    Constructed model