Unit conversion in modules

Posted by: Arijit

Unit conversion in modules - 12/13/12 08:01 AM

For conversion to a different set of units, Caesar-II allows us to readily achieve that for the *.C2 files but is that also possible in the various modules of Caesar-II like the flange leakage, WRC, API-610, etc? If so how? Otherwise, is it not something which should be considered in the future editions.
I mean the present edition of Caesar-II is certainly fabulous in outlook but I certainly believe there is always scope of betterment, even´'non-technically' speaking!
Thanks in advance,
Posted by: Dave Diehl

Re: Unit conversion in modules - 12/13/12 08:53 AM

Units are assigned to model input when that model is created and remain with that model unless those units are converted by the user. This conversion is available through Tools on the Main Menu.
Output, on the other hand, is always displayed in the "current" units, independent of the model's (input) units. You can change the current in the folder's configuration file (also accessible from Tools).
Those outboard processors (e.g. API 610) also use current units for input and display (old) results in current units.
Is there something else you're looking for here?
Posted by: Arijit

Re: Unit conversion in modules - 12/14/12 04:02 AM

Dave,
Many thanks. To enquire further I must first be clear about the difference between the "Input unit file" and the "current unit file". Say I make my own unit file INPUT.fil and input everything by that. In attempting to do so, I´ll have to include this unit file in the *.cfg specification. What you are saying is that the output can be checked in different set of units, if desired? This is where I am confused. I´d like to know how that is done.
I am clear in understanding that the auxillary processors will use the same units as used in C2 output and if I desire that these processors exhibit in a particular set of units I must change the units of the C2 output processor through the *.cfg file.
Thanks,

Arijit
Posted by: Richard Ay

Re: Unit conversion in modules - 12/14/12 08:26 AM

Quote:
What you are saying is that the output can be checked in different set of units, if desired? This is where I am confused. I´d like to know how that is done.

Just change the Configuration to point to a different units file. Output generated after that will be displayed using the newly selected units.

Quote:
if I desire that these processors exhibit in a particular set of units I must change the units of the C2 output processor through the *.cfg file.


You change the units for everything (except the piping input) via the Configuration. As Dave stated above, the units used to create the piping input are retained in the input file.
Posted by: Dave Diehl

Re: Unit conversion in modules - 12/14/12 08:40 AM

Said another way...

All reports are displayed in "current" units. Current units are defined in the configuration file.
Piping input is assigned the "current" units that remain with the model, no matter how the "current" units may change. If you wish to change the model units, use the Tools option to do so.

Hint: C2 always translates user units to its (US Customary) internal units in the input processors and translates these internal units to the assigned user units in output display. (That explains the occasional "rounding error" you may see on certain standards (e.g. API 610).)
Posted by: Arijit

Re: Unit conversion in modules - 12/14/12 09:25 AM

Richard & Dave,
Thanks for the lucid explanation, as always. I will try out what you´ve explained. I´ll get back to this place for further queries, if any.
Posted by: Arijit

Re: Unit conversion in modules - 12/26/12 06:18 AM

I tried what has been discussed above and the following are my findings:
1.When I want to create a new WRC file (for example; in the configuration file I have selected myunits.fil)I give a filename and when I select to browse and check whether the file is being saved in the folder I want, the software shows me the Unit file, which by default is the English.fil.
2.When I repeat step-1 without going to check the folder I am saving the file (in other words without the 'browse' option) the WRC processor chooses myunits.fil as the default set of units.
3.From the discussions above when I want to create a new C2 file the units will be as per the *.fil file I choose in the configuration or have present in the folder/location where the C2 file is being created (or by default the english.fil). But then I can change the units of the output by changing the configuration again (by choosing another *.fil) and that will be the same that will be used by the secondary processor.
Is this some kind of bug the strangeness in step-1&2?
Thanks in advance,
Posted by: Richard Ay

Re: Unit conversion in modules - 12/26/12 10:53 PM

Obviously "1" and "2" should behave the same regarding units. I presume you are not switching directories with the [Browse] operation? If so, jumping into a different directory will activate the Configuration File there, which could be referencing a different set of units.

Please advise what version of c2 you're using, so we can check this out in detail.
Posted by: Arijit

Re: Unit conversion in modules - 12/27/12 02:32 AM

Sir,
While performing operation/steps 1 & 2 I am not switching directories. (your presumption is correct)
Well, jumping into a new directory will trigger C2 to choose the *.fil file (as set in the configuration file) in that new location or the default option - english.fil.
I am using Caesar II 2011 R1 or version 5.31, (build 120525). What I fail to understand is even if the configuration file is set to myunits.fil the system still chooses the C2´s default unit file as if the cfg file has been reset?
Posted by: danb

Re: Unit conversion in modules - 01/06/13 05:14 PM

If you specify "myunits.fil" in the config file, Caesar will look for it in the calculation folder. If "myunits.fil" is not there, Caesar will use the default unit file i.e. english.fil.

Regards,
Posted by: Arijit

Re: Unit conversion in modules - 01/08/13 11:57 AM

danb,
That is what I had in mind but even if myunits.fil is present because all I am trying to do is create a new file in the existing folder in two different ways, and in doing that found such anomaly.

I believe the creators may have a better explanation for it, or may be it is some funny bug, who knows!
Posted by: danb

Re: Unit conversion in modules - 01/08/13 12:48 PM

maybe read/write rights? try on local folder.
Posted by: Richard Ay

Re: Unit conversion in modules - 01/09/13 02:00 PM

As a result of the investigation prompted by this thread, we have found that the WRC module does not build the path to the configuration file correctly. Therefore, this module is using the default configuration file located in the \system directory.

You can correct this issue by copying the "caesar.cfg" file from this data directory into the 5.31 \system directory.

We'll get this fixed in the next Service Pack.