prisms-center / phaseField

PRISMS-PF: An Open-Source Phase-Field Modeling Framework
https://prisms-center.github.io/phaseField/
Other
229 stars 119 forks source link

Add a method for calculation of simulation parameters in 0th timestep #244

Open landinjm opened 2 months ago

landinjm commented 2 months ago

Currently, there is no way to calculate / update parameters in customPDE with simulation data in the first timestep or others. An example would be something like this:

for (unsigned int i = 0; i < dim; i++)
  {
    element_volume =  element_volume * userInputs.domain_size[i] / std::pow(2, userInputs.refine_factor);
  }

Having something like this would be nice to do some calculation of parameters without having to do that in every cell.