Skip to content

Missing phasePropertyName in basicThermo.C

This line: https://develop.openfoam.com/Development/openfoam/-/blob/master/src/thermophysicalModels/basic/basicThermo/basicThermo.C#L278

Should be like: phasePropertyName("thermo:alpha"),

Instead of: "thermo:alpha",

This is why: The basicThermo has some constructors that use the 'thermo:alpha' volScalarField. Two of them use the 'phasePropertyName("thermo:alpha")' format, while the third one uses simply 'thermo:alpha'. This creates a problem because objectRegistry doesn't register duplicated names. So when we have e.g. multiphase simulation, the liquid and solid 'thermo:alpha' members will not be registered.