CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Non-uniform transport properties in openFoam (https://www.cfd-online.com/Forums/openfoam-programming-development/225637-non-uniform-transport-properties-openfoam.html)

fetc95 April 3, 2020 01:39

Non-uniform transport properties in openFoam
 
Hello

In the dictionary transportProperties, we set transport properties that are constant. Does OpenFOAM have possibility to set non-uniform transport properties that are functions of coordinates and time?

For example, let me want to solve transport equation

\f[
\ddt{T} = \div ( D(x, t) \grad T )
\f]

If D is constant, I just will type in transportProperties, e.g., as follows:

D 0.1

But is there a possibility to set D as a function?

kbeat April 20, 2020 02:33

Yes variable transport is possible
 
The implementation is a bit tricky.
You need to create a separate header with function to modify the 'D'
at each cell value during runtime. you an take existing fields as input.

I did an implementation where i took the transport properties from a external source for multi-component transport model.

fetc95 April 20, 2020 04:19

Quote:

Originally Posted by kbeat (Post 766451)
The implementation is a bit tricky.
You need to create a separate header with function to modify the 'D'
at each cell value during runtime. you an take existing fields as input.

I did an implementation where i took the transport properties from a external source for multi-component transport model.

Thanks. Does it mean that, e.g., for solving the above equation I cannot use the laplacianFoam and need to build a new solver?

quarkz November 2, 2023 21:04

Hi, any update?

Is it possible to use something like this below (similar to initial condition)?

inlet
{

type uniformFixedValue;
uniformValue table
(
(0 (0 0 0))
(0.0008 (4270 0 0))
);
}


All times are GMT -4. The time now is 04:09.