CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

How to quote data from imported tables in field functions of Star CCM+?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2021, 22:59
Default How to quote data from imported tables in field functions of Star CCM+?
  #1
New Member
 
Yibao Shang
Join Date: Jun 2014
Location: China
Posts: 15
Rep Power: 11
tjushang is on a distinguished road
Hey guys,

I want to realize this function in Star CCM+: When temperature of a specific zone is less than T0,the heat source is set by my imported Table(time). When temperature of this zone exceeds T0, the heat source is set to another constant value.
As far as I know, the alter of the heat source can be achieved by using field function code such as:
$(Temperature of this zone)<T0? $(value from imported table) : constant value.
However, I can't figure out how to get $(value from imported table) from the Table(time). One method in my mind is that I create a small zone totally independent of my concerned computational zone and create a report of the temperature of this zone, and then convert the temperature change rate into heat source in my field function. This method seems stupid and I believe there may be some ways I haven't thought about.
tjushang is offline   Reply With Quote

Old   September 8, 2021, 03:40
Default
  #2
Member
 
Join Date: Nov 2019
Posts: 93
Rep Power: 6
FliegenderZirkus is on a distinguished road
It may be that you're looking for the function interpolateTable, from the manual:

interpolateTable(@Table("<tablename>"), "<x-column>", {LINEAR | STEP | SPLINE}, "<phi-column>", <scalar_expression>)
FliegenderZirkus is offline   Reply With Quote

Old   September 8, 2021, 07:43
Default
  #3
New Member
 
Yibao Shang
Join Date: Jun 2014
Location: China
Posts: 15
Rep Power: 11
tjushang is on a distinguished road
Quote:
Originally Posted by FliegenderZirkus View Post
It may be that you're looking for the function interpolateTable, from the manual:

interpolateTable(@Table("<tablename>"), "<x-column>", {LINEAR | STEP | SPLINE}, "<phi-column>", <scalar_expression>)
Thank you. This function perfectly solves my problem.
tjushang is offline   Reply With Quote

Reply


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
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
External Magnetic Field Data Format for FLUENT MHD Module eduardvinter FLUENT 0 January 24, 2019 01:54
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
Run OpenFoam in 2 nodes of a cluster WhiteW OpenFOAM Running, Solving & CFD 16 December 20, 2016 00:51
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57


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