CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Issue related to Constant heat flux Boundary condition (https://www.cfd-online.com/Forums/openfoam-pre-processing/234408-issue-related-constant-heat-flux-boundary-condition.html)

srv537 March 5, 2021 03:13

Issue related to Constant heat flux Boundary condition
 
I want to specify constant heat flux Boundary condition as below and i have two questions
1. what are the difference between externalWallHeatFluxTemperature and fixedGradient BC?

2. I am getting some error for below BC

Wall
{
type externalWallHeatFluxTemperature;
mode flux;
q uniform 1446; // (q = W/m^2)
kappaMethod fluidThermo;
kappa none;
kappaMethod fluidThermo;
value $internalField;

// type fixedGradient;
// gradient uniform 55223; //{ DT/Dn = q (w/m^2) / K_air (W/m-K) = 1446/0.026 = 55223 }
}
It is showing below error in OF8

"--> FOAM FATAL ERROR:
Cannot find a fluidThermo or solidThermo instance

From function Foam::tmp<Foam::Field<double> > Foam::temperatureCoupledBase::kappa(const fvPatchScalarField&) const
in file derivedFvPatchFields/temperatureCoupledBase/temperatureCoupledBase.C at line 133."

FOAM exiting

Thanks

lumpor March 12, 2021 14:31

Maybe it doesn't matter since it should skip the second one, but try removing the duplicate "kappaMethod fluidThermo;" row?

Bloerb March 16, 2021 04:39

You might be trying to use it with a solver that is not using solid or fluidThermo.


All times are GMT -4. The time now is 08:46.