CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   How to quote data from imported tables in field functions of Star CCM+? (https://www.cfd-online.com/Forums/star-ccm/238350-how-quote-data-imported-tables-field-functions-star-ccm.html)

tjushang September 7, 2021 22:59

How to quote data from imported tables in field functions of Star CCM+?
 
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.

FliegenderZirkus September 8, 2021 03:40

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>)

tjushang September 8, 2021 07:43

Quote:

Originally Posted by FliegenderZirkus (Post 811812)
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.:)


All times are GMT -4. The time now is 16:50.