473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to read data stored in dll file in C++ for sizing control valve

hi friends,

I am Purushottam, a mechanical engineer.I am trying to write a C++ programme to know the characteristics of control valve(i.e cv,coefficient of valve). Before calculating cv, i need to know the density,which is a property of the fluid & that depends on pressure & temperature.So, i mean to say, it has to be read from steam tables.But, till now, we are doing the same thing using simple excel calculation & density & all other properties like enthalpy,quality,specific gravity...etc were read from dll file(for steam table) that are linked to the excel file.

Once upstream & downstream of control valve are known then cv can be easily calculated using euations.
But now, i need to do the same using C++.I have been stuck in calculating density,specific gravity...etc calculations.
Is it possible to link excel file in C++,so that whenever i give input conditions in C++,required density & all other properties can be read from this excel file.

Any mechanical engineer with sound C/C++ knowledge can get my question easily.But anyother people who can guide me will be highly appreciated.

Experts please give your suggestions.

Thanks.
Sep 12 '07 #1
1 3183
sicarie
4,677 Expert Mod 4TB
hi friends,

I am Purushottam, a mechanical engineer.I am trying to write a C++ programme to know the characteristics of control valve(i.e cv,coefficient of valve). Before calculating cv, i need to know the density,which is a property of the fluid & that depends on pressure & temperature.So, i mean to say, it has to be read from steam tables.But, till now, we are doing the same thing using simple excel calculation & density & all other properties like enthalpy,quality,specific gravity...etc were read from dll file(for steam table) that are linked to the excel file.

Once upstream & downstream of control valve are known then cv can be easily calculated using euations.
But now, i need to do the same using C++.I have been stuck in calculating density,specific gravity...etc calculations.
Is it possible to link excel file in C++,so that whenever i give input conditions in C++,required density & all other properties can be read from this excel file.

Any mechanical engineer with sound C/C++ knowledge can get my question easily.But anyother people who can guide me will be highly appreciated.

Experts please give your suggestions.

Thanks.
I'd let someone else do the work for you ;).

http://www.google.com/search?hl=en&q...cs&btnG=Search

And if those don't work, try modifying the search - you'll probably find something out there (it sounds like you're really wanting something in 'fluid dynamics' but I'm not 100% sure).

PS - is data or are methods read from the dll file?
Sep 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: tvn007 | last post by:
I wrote the code below to read data from file into structure using C. However, I would like to convert it to C++. Could someone please give me some hints. I am not that famaliar with C++ Thanks...
2
by: tvn007 | last post by:
I am using the following code to read data from input file into structure. Not sure it is the best way. Please comment or you have better way. please let me kmow....
4
by: Josema | last post by:
Hi to all, Im searching a hand to solve an Exception that i get when i try to give the user to a gmail account... Any help would be appreciated.. Thanks in advance This is a piece of my...
10
by: kathy | last post by:
to read float type data, we can use: .... float f; fscanf(outfile, "%f", &f); .... but for double type, how to do that? .... double d;
5
by: Joe Van Dyk | last post by:
I have a file that looks like this: 25.000000 55.000000 23.000000 51.000000 5 8 8700 6000 <and then, at byte 128, starts binary stuff> What's the proper way to make sure that I'm reading in...
1
by: jim.omalley | last post by:
I'm trying to write an interface to send scoreboard data from an XML file generated by a football stats program to a Chyron CODi character generator connected to my COM1 serial port (all operations...
0
by: dphill | last post by:
Hello all I am a beginner .Net programmer so please forgive my ignorance. In brief, I am trying to read from xml file stored in a SQL database table’s field. This is what I used to create...
2
by: chikhalepankaj | last post by:
hi guys, I hv problem in reading data from text file. I want to read data in column wise from the table shown as below Module Ad Di Do 4011 1 2 ...
5
by: runsun | last post by:
Thanks in advance. This program is written in C. It needs to read all characters from a file; then write them into a 3D array (yes, 3D!). The file is a .prn file (one of the Excel types), which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.