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

User Code to change optical properties at certain temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2018, 11:46
Default User Code to change optical properties at certain temperature
  #1
New Member
 
Frederik Blum
Join Date: Jun 2018
Posts: 1
Rep Power: 0
RageofaMonkey is on a distinguished road
Hey guys,

Iam a CFD newbie and trying to simulate a sun collector with thermotropic glazing (changes optical properties when certain temperature is reached) and I can't figure out how to code it properly in the User Code without getting an error during the simulation.

So far I coded two User functions that should change the surface emissivity and surface transmissivity when a temperature of 55 °C is reached on the glazing. There for the cell temperature is passed to the function as an argument and the emissivity/transmissivity is returned as a result.

The surface reflectivity isn't changed and has a constant value of 0.1.

The code for the surface transmissivity is
.

and for the surface emissivity is
.

I registered both functions as
.

When I start the simulation an error pops up after 20 Iterations: Check that optical properties sum up to one at boundary [the names of the glazing boundarys] and the simulations stops. On paper the values of the transmissivity, emissivity and reflections sum up to one, but I still get this error and can't figure out why and how to solve it.

I hope someone can help me

Thank advanced!
RageofaMonkey 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
Create a user code HN_Hoang STAR-CCM+ 3 December 27, 2020 03:15
problem defining material properties as a function of temperature Ehsan301 CFX 3 October 19, 2017 16:33
[General] How to change cell properties in ParaView? c.winkler ParaView 1 June 28, 2017 03:22
calculate particle temperature gradient with user routine amd18 CFX 1 April 3, 2017 11:32
User Code and Surface Heat Flux Assistance Dyls STAR-CCM+ 0 August 2, 2013 11:44


All times are GMT -4. The time now is 01:08.