Discussion:
[Radiance-general] optics2glazed and glaze script
raghuram kalyanam
7 years ago
Permalink
Hi Everyone,

I want to create glazing systems for different states of EC glass (NFRC ID’s 8905,8906,8908,8909) with a coated glass <https://seafile.rlp.net/f/ea7af9935f614121aaa5/?dl=1>(CARDINAL_66_0.76.rad). I used optics2glazedb and glaze script to combine them. I have few questions about using them.

I tried to add all the glasses to LLGlasses.db using below command, but this doesn't add "CARDINAL_66_0.76.rad” to the db. I had to add it manually, but why wouldn’t it add to the db?

./optics2glazedb Clear-Float-Glass-8.rad CARDINAL_66_0.76.rad SageGlass-8905.rad SageGlass-8906.rad SageGlass-8908.rad SageGlass-8909.rad > LLGlasses.db

2. After creating LLGlasses.db i executed the Glaze script and created glazing systems like below, only changing s2 with EC glass states and keeping other surfaces constant. The 'Normal hemispherical transmittance’ calculated this way (0.553) is different from Tvis( 0.453) calculated using Window <https://seafile.rlp.net/f/eb88794094874c8c9843/?dl=1>, for the same combination of glasses (the case of 8905 and CARDINAL_66_0.76.rad, shown below). The only thing extra in Window is air gap (mix of Argon and air).



Window normal faces interior

| | | |
| | | |
| | | |
| | | |-->
| | | |
| | | |
| | | |
s1 s2 s3 s4

Supported surface types are:
1 - Clear-Float-Glass-8
2 - Cardinal
3 - SageGlass-8905
4 - SageGlass-8906
5 - SageGlass-8908
6 - SageGlass-8909

What is the type of s1? 1
What is the type of s2? 3
What is the type of s3? 2
What is the type of s4? 1

############################################
# Glazing produced by Radiance glaze script
# $Revision$
# Loaded: LLGlasses.db
# Mon Dec 18 10:47:37 CET 2017
# Material surface normal points to interior
# Number of panes in system: 2
# Exterior surface s1 type: Clear-Float-Glass-8
# Inner surface s2 type: SageGlass-8905
# Inner surface s3 type: Cardinal
# Interior surface s4 type: Clear-Float-Glass-8
# Exterior normal hemispherical reflectance: 0.160661531
# Interior normal hemispherical reflectance: 0.129405804
# Normal hemispherical transmittance: 0.553981928
#
void BRTDfunc glaze2_unnamed
10
if(Rdot,cr(fr(0.060),ft(0.789),fr(0.086)),cr(fr(0.119),ft(0.666),fr(0.071)))
if(Rdot,cr(fr(0.077),ft(0.845),fr(0.08)),cr(fr(0.12),ft(0.69),fr(0.091)))
if(Rdot,cr(fr(0.113),ft(0.767),fr(0.058)),cr(fr(0.144),ft(0.502),fr(0.116)))
ft(0.789)*ft(0.666)
ft(0.845)*ft(0.69)
ft(0.767)*ft(0.502)
0 0 0
glaze2.cal
0
9
0 0 0
0 0 0
0 0 0


I would like to know why they are different and which is the correct visible transmittance for the glazing. I have included all the files here <https://seafile.rlp.net/d/3b63eb865e8f49169d68/>.

3. Why does optics2glazedb needs first argument a clear glass? I generated a db with Clear-Float-Glass-8 initially (see the Supported surface types above) and then another db after removing it (see below). It still generated db, but when using Glaze script, I see a 1 - clear glass is generated in Supported surface types automatically. In both cases (above and below) i get same Normal hemispherical transmittance. Is it ok to use any clear glass here?

1 - clear glass
2 - Cardinal
3 - SageGlass-8905
4 - SageGlass-8906
5 - SageGlass-8908
6 - SageGlass-8909

It would be great if any one could explain this .

Thanks in advance

Best Regards,
Raghu
Charudatta Joshi
7 years ago
Permalink
Hi Raghu,

Re: #1 of your queries: It has to do with the underscores and spaces in
your rad file that comes from Optics. You need to remove " " and "_", or
replace them with another character in the following three strings. Note
that the last "_" before glass / front / back remains.

Changes:
CARDINAL 66_0.76 _glass >> CARDINAL-66_0.76_glass
CARDINAL 66_0.76 _front >> CARDINAL-66_0.76_front
CARDINAL 66_0.76 _back >> CARDINAL-66_0.76_back

Probably good (or required?) to do this also for your file name
(CARDINAL_66_0.76.rad >> CARDINAL-66-0.76.rad).

With that, you get:

***@SJ-PC:/mnt/c/Users/SJ/Downloads/Raghuram$ ./optics2glazedb
CARDINAL-66-0.76.rad SageGlass-8905.rad SageGlass-8906.rad
SageGlass-8908.rad SageGlass-8909.rad > LLglasses.db
***@SJ-PC:/mnt/c/Users/SJ/Downloads/Raghuram$ more LLglasses.db
Surface Tr Tg Tb Rcr Rcg Rcb Rgr Rgg
Rgb Part
CARDINAL-66-0.76 0.789 0.845 0.767 0.071 0.091 0.116
0.06 0.077 0.113 0
SageGlass-8905 0.666 0.69 0.502 0.086 0.08 0.058
0.119 0.12 0.144 0
SageGlass-8906 0.154 0.216 0.187 0.028 0.012 0.013
0.087 0.105 0.126 0
SageGlass-8908 0.034 0.074 0.085 0.025 0.006 0.009
0.085 0.105 0.125 0
SageGlass-8909 0.004 0.013 0.019 0.03 0.007 0.014
0.099 0.117 0.135 0
***@SJ-PC:/mnt/c/Users/SJ/Downloads/Raghuram$


Hope that helps.
Thanks,
CJ

*Charudatta Joshi*

*If it is worth doing, it is worth doing well.*




On Mon, Dec 18, 2017 at 6:43 PM, raghuram kalyanam <***@rhrk.uni-kl.de>
wrote:
Hi Everyone,

I want to create glazing systems for different states of EC glass (NFRC
ID’s 8905,8906,8908,8909) with a coated glass
<https://seafile.rlp.net/f/ea7af9935f614121aaa5/?dl=1>(CARDINAL_66_0.76.rad).
I used optics2glazedb and glaze script to combine them. I have few
questions about using them.


1. I tried to add all the glasses to LLGlasses.db using below command,
but this doesn't add "CARDINAL_66_0.76.rad” to the db. I had to add it
manually, but why wouldn’t it add to the db?


./optics2glazedb Clear-Float-Glass-8.rad CARDINAL_66_0.76.rad
SageGlass-8905.rad SageGlass-8906.rad SageGlass-8908.rad SageGlass-8909.rad
Post by raghuram kalyanam
LLGlasses.db
2. After creating LLGlasses.db i executed the Glaze script and created
glazing systems like below, only changing s2 with EC glass states and
keeping other surfaces constant. The 'Normal hemispherical
transmittance’ calculated
this way (0.553) is different from Tvis( 0.453) calculated using Window
<https://seafile.rlp.net/f/eb88794094874c8c9843/?dl=1>, for the same
combination of glasses (the case of 8905 and CARDINAL_66_0.76.rad, shown
below). The only thing extra in Window is air gap (mix of Argon and air).


Window normal faces interior

| | | |
| | | |
| | | |
| | | |-->
| | | |
| | | |
| | | |
s1 s2 s3 s4

Supported surface types are:
1 - Clear-Float-Glass-8
2 - Cardinal
3 - SageGlass-8905
4 - SageGlass-8906
5 - SageGlass-8908
6 - SageGlass-8909

What is the type of s1? 1
What is the type of s2? 3
What is the type of s3? 2
What is the type of s4? 1

############################################
# Glazing produced by Radiance glaze script
# $Revision$
# Loaded: LLGlasses.db
# Mon Dec 18 10:47:37 CET 2017
# Material surface normal points to interior
# Number of panes in system: 2
# Exterior surface s1 type: Clear-Float-Glass-8
# Inner surface s2 type: SageGlass-8905
# Inner surface s3 type: Cardinal
# Interior surface s4 type: Clear-Float-Glass-8
# Exterior normal hemispherical reflectance: 0.160661531
# Interior normal hemispherical reflectance: 0.129405804
# Normal hemispherical transmittance: 0.553981928
#
void BRTDfunc glaze2_unnamed
10
if(Rdot,cr(fr(0.060),ft(0.789),fr(0.086)),cr(fr(0.119),ft(0.666),fr(0.071)))
if(Rdot,cr(fr(0.077),ft(0.845),fr(0.08)),cr(fr(0.12),ft(0.69),fr(0.091)))
if(Rdot,cr(fr(0.113),ft(0.767),fr(0.058)),cr(fr(0.144),ft(0.502),fr(0.116)))
ft(0.789)*ft(0.666)
ft(0.845)*ft(0.69)
ft(0.767)*ft(0.502)
0 0 0
glaze2.cal
0
9
0 0 0
0 0 0
0 0 0


I would like to know why they are different and which is the correct
visible transmittance for the glazing. I have included all the files here
<https://seafile.rlp.net/d/3b63eb865e8f49169d68/>.

3. Why does optics2glazedb needs first argument a clear glass? I generated
a db with Clear-Float-Glass-8 initially (see the Supported surface types
above) and then another db after removing it (see below). It still
generated db, but when using Glaze script, I see a 1 - clear glass is
generated in Supported surface types automatically. In both cases (above
and below) i get same Normal hemispherical transmittance. Is it ok to use
any clear glass here?

1 - clear glass
2 - Cardinal
3 - SageGlass-8905
4 - SageGlass-8906
5 - SageGlass-8908
6 - SageGlass-8909

It would be great if any one could explain this .

Thanks in advance

Best Regards,
Raghu
Charudatta Joshi
7 years ago
Permalink
Correction:
CARDINAL 66_0.76 _glass >> CARDINAL*-*66-0.76_glass
CARDINAL 66_0.76 _front >> CARDINAL-66*-*0.76_front
CARDINAL 66_0.76 _back >> CARDINAL-66*-*0.76_back

*Charudatta Joshi*

*If it is worth doing, it is worth doing well.*
...
raghuram kalyanam
7 years ago
Permalink
Thanks CJ. That solves the mystery. I should have looked into the script once.

@Jack de Valpine. Thank you very much for a nice blog. I have come this far with the help of your blog.

Could any one explain part #2 , why the transmittances are different ?

Best Regards,
Raghu
...
Greg Ward
7 years ago
Permalink
Never mind -- I see you took care of it!

-Greg
...
Jack de Valpine
7 years ago
Permalink
Hi Raghu,

Here is a link to a blog on use of the glaze script (originally authored
by Greg Ward for Visarc) and  optics2glazedb (authored by me to ease
generation of custom glazing libraries to be used by glaze).

https://modsimvis.blogspot.com/2014/12/glass-in-radiance.html

The glaze script requires a clear glass material to serve as the base
substrate. This is why the built in library (eg running glaze without
the -f option) has a default clear glass material. This is also why if
you use a custom library and want to have a different clear substrate
you must supply it as the first entry. I believe there is a check in the
glaze script to confirm that the first glass description is in fact
clear, that is, with the same reflectance for the front and back
surfaces. So if the check fails then a default clear glass description
is created.

As Charudatta noted the use of spaces and underscores in the material
name field of the material descriptions causes problems, so the
corrections that he suggests should do the trick.

Regards,

-Jack de Valpine
...
Loading...