Skip to content

How to solve ODEs with spatial variables coupled #28695

Discussion options

You must be logged in to vote

Hi @GiudGiud,
Thank you for your kind help. Could you please help me get the code below to display properly?
I hope this discussion will be helpful to others.

Here is the header files, source files and input file for the problem discussed:

A(x,t) = A0exp(-y);
dB(x,t) / dt = mA(x,t)B(x,t) + nB(x,t)C(x,t);
dC(x,t) / dt = qB(x,t)C(x,t)

// .h file for A(x,t)

#pragma once

#include "ADMaterial.h"

class AMaterial : public ADMaterial
{
public:
  static InputParameters validParams();
  AMaterial(const InputParameters & parameters);

  virtual void computeQpProperties() override;

protected:
  const Real _A0;

  ADMaterialProperty<Real> & _A;                  
};

// .C file for A(x,t)

#include "…

Replies: 1 comment 91 replies

Comment options

You must be logged in to vote
91 replies
@keassyguang
Comment options

@GiudGiud
Comment options

@keassyguang
Comment options

@keassyguang
Comment options

Answer selected by keassyguang
@GiudGiud
Comment options

@keassyguang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants