473,473 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Best way to represent this grid?

Hi, I am working on a finite-volume numerical method project. I am not
great at programming though. I am looking for the best way to
represent this grid in C. The grid consists of N points spaced at
deltaX = Xmax/N where Xi = (i-1/2)*deltaX, i = 1, 2, 3,...N.
Furthermore there are cell interfaces located at Xi+1/2 and Xi-1/2 and
each interface has a + and - side.

Obviously I can declare Q[N+1] and get Q[i], Q[i+1], Q[i-1] for the
grid points but I am not sure the best way to represent Q[i+1/2]+ and
Q[i+1/2]-, and Q[i-1/2], etc. which are needed in my calculations.

Thank You,
Stephen
Nov 21 '07 #1
1 1911
On Tue, 20 Nov 2007 22:13:01 -0800 (PST), steve <se*******@gmail.com>
wrote:
>Hi, I am working on a finite-volume numerical method project. I am not
great at programming though. I am looking for the best way to
represent this grid in C. The grid consists of N points spaced at
deltaX = Xmax/N where Xi = (i-1/2)*deltaX, i = 1, 2, 3,...N.
Furthermore there are cell interfaces located at Xi+1/2 and Xi-1/2 and
each interface has a + and - side.

Obviously I can declare Q[N+1] and get Q[i], Q[i+1], Q[i-1] for the
grid points but I am not sure the best way to represent Q[i+1/2]+ and
Q[i+1/2]-, and Q[i-1/2], etc. which are needed in my calculations.
You could use an array of struct.
Remove del for email
Nov 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
1
by: Estela | last post by:
Hello, i have a big XML file, i load the xml to a xmldocument. My question is, how is the best way to display de information (aspx page). I tryng load the xml into a dataset an then displaying...
0
by: Carl | last post by:
Hi, I am trying to figure out the best approach for this simple scenario. I have one C# Windows application Form that consumes few web services for all data related function. In this form...
1
by: Mok | last post by:
Hello, I want to pull information from a table in sql server, bind it to a grid and update those values. I would like to know the best way to do it. I used the configure data adapter wizard and it...
3
by: Sivaprasad | last post by:
Hello, Can anybody suggest me, which is the best grid that can be used in ASP.Net. The main functionality I'm looking for is I shoud be able to do heirarchical view of data. Need to do a row...
3
by: Ray Lavelle | last post by:
I'm upgrading my application to .Net and need a grid control replacement for my old one. I was using the Farpoint control, which I really like but the new version for .Net is fairly expensive. I...
11
by: Tom | last post by:
I am planning on adding a Preferences form to my application and using the Property Grid to display the preferences to the user. What do you think would be the best way to save these preferences...
12
by: Aaron Smith | last post by:
What is the best way to handle data in a multiple user environment? We have forms that will allow users to add edit and delete data from a table on SQL server. The data could be edited on multiple...
3
by: Nick | last post by:
I'm looking for any guidelines along the lines of XSD Best practices for the following issues. If you are modelling something like interest rates, there is a choice of how you represent that...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
bsmnconsultancy
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...

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.