CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] Manipulate thermophysical properties with swak4foam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2015, 07:34
Default Manipulate thermophysical properties with swak4foam?
  #1
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
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?
TobM is offline   Reply With Quote

Old   December 11, 2015, 04:41
Default
  #2
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
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
fabian_roesler is offline   Reply With Quote

Old   December 11, 2015, 05:03
Default
  #3
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
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
TobM is offline   Reply With Quote

Old   December 11, 2015, 06:05
Default
  #4
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
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 is offline   Reply With Quote

Old   December 11, 2015, 06:08
Default
  #5
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 213
Rep Power: 18
fabian_roesler is on a distinguished road
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
fabian_roesler is offline   Reply With Quote

Old   January 5, 2016, 02:29
Default
  #6
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 10
hcl734 is on a distinguished road
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
hcl734 is offline   Reply With Quote

Reply

Tags
swak4foam, thermophysicalproperties


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
Transport and Thermophysical Properties dancfd OpenFOAM Pre-Processing 0 September 12, 2014 19:52
confused with units in solidThermophysical properties and Thermophysical properties zahraa OpenFOAM Running, Solving & CFD 3 August 14, 2014 08:11
table properties for thermophysical properties romant OpenFOAM Running, Solving & CFD 1 August 12, 2014 08:41
Thermophysical properties for natural convection Ciefdi OpenFOAM Running, Solving & CFD 0 November 7, 2013 11:44


All times are GMT -4. The time now is 17:32.