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,qualit y,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,specifi c 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.
1 3191 sicarie 4,677
Recognized Expert Moderator Specialist
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,qualit y,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,specifi c 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?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 in advance
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct test {
char...
|
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.
//////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
|
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 code:
Server=new TcpClient("pop.gmail.com",995); //stablish a connection
|
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;
|
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 valid data?
Should I check after each cin that the input stream isn't eof?
| |
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 on same
machine). I'm already able to send static commands written into HTTP
forms to control the CG via serial COM1.
What I'm needing is a way...
|
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 the table:
CREATE TABLE Document (
DocID int IDENTITY NOT NULL,
Description nvarchar(50) NOT NULL,
DocumentStore xml NOT NULL,
|
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 -
4012 2 3 2
4013 2 3 3
4014 4 7 8
i m looking for...
|
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 separates columns with space.
To simplify the question, the file contains 3 rows and 2 columns:
abc 2,3
defg 4
h 5,6
array is array, where...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |