CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Manipulate thermophysical properties with swak4foam? (https://www.cfd-online.com/Forums/openfoam-community-contributions/163973-manipulate-thermophysical-properties-swak4foam.html)

TobM December 9, 2015 07:34

Manipulate thermophysical properties with swak4foam?
 
Hi

is it possible to manipulate thermophysical properties with swak4foam?

I calculated a temperature dependent viscosity and used the manipulateField function to write the result to "thermo:mu".

The problem is that the solver does not use the new thermo:mu for its calculations. Is there a way to do that?

fabian_roesler December 11, 2015 04:41

Why don't you just use polynomial transport properties?
Equation 7.2 in http://cfd.direct/openfoam/user-guide/thermophysical/ should be what you are looking for.

Cheers

Fabian

TobM December 11, 2015 05:03

Hi Fabian,

sadly no. Polynomial would only work with a piecewise definition, what is, as far as I know, not possible with existing OF functionality.
What I need is a piecewise definition or alternatively a table where the values are interpolated. Both is possible in swak4foam, what I don't know is, if it's possible to provide the calculated value to the solver.

Greetings

Tobi

fabian_roesler December 11, 2015 06:05

You could try to implement a new transport model. The polynomial transport lies here:
  • src/thermophysicalModels/specie/transport/polynomial/polynomialTransport.H
  • src/thermophysicalModels/specie/transport/polynomial/polynomialTransport.C
Probably you can change the code to your needs.


Fabian

fabian_roesler December 11, 2015 06:08

You could try to merge it with code snippets from the uniformFixedValue boudary condition to create a new tabulated transport class.
I'd say this is the real OpenFOAM masters way :)

hcl734 January 5, 2016 02:29

Did you made any Progress on this issue, since it is interesting for me as well.
I am trying to implement an exponential dependency on temperature for viscosity
http://www.cfd-online.com/Forums/ope...ependance.html


All times are GMT -4. The time now is 02:34.