CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

Manipulate thermophysical properties with swak4foam?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2015, 08:34
Default Manipulate thermophysical properties with swak4foam?
  #1
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 74
Rep Power: 4
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, 05:41
Default
  #2
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 210
Rep Power: 10
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, 06:03
Default
  #3
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 74
Rep Power: 4
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, 07:05
Default
  #4
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 210
Rep Power: 10
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, 07:08
Default
  #5
Senior Member
 
Fabian Roesler
Join Date: Mar 2009
Location: Germany
Posts: 210
Rep Power: 10
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, 03:29
Default
  #6
Member
 
Join Date: May 2015
Posts: 68
Rep Power: 3
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Thermophysical Properties wsmith02 OpenFOAM 3 July 27, 2015 05:37
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 12:44
swak4foam fails in parallel with -otherTime? Phicau OpenFOAM Post-Processing 3 June 26, 2013 13:00


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