thanks AlephZero,
however this route will not work for me as I need the exact number of spaces between each word or number. the formatting for this would be too time consuming so i will create a batch file in C which copies instead.
regards,
Charles
The issue I am having is that I want to create a program which reads a .txt file and copies it exactly to a .inp file followed by some coordinates which I am generating. the . txt file is being used as a header file which can be changed outside the program but once the program is read in the new...
I have another hopefully simple to answer problem. In my code I have got it to calculate x values from 0 - 1 in decimal values and the y values associated with these. I than print off the values straight away and progress the x value so i end up with a table like so:
NACA 2412...
AlephZero,
Thank you very much that is absolutely perfect. I thought it would be a simple solution but just could not see it myself.
Thank you again for all of your help.
Thanks for all the responses so far. Right I have reworked my intial code now and have got it to work and compile however I still do have a problem in that one of my calculations is not being carried out.
Code:
DO J = 1, 11
NP = 11 !NUMBER OF...
I am trying to write all three variables to one file. then repeat the process 'I' times
I used the write command as shown:
WRITE (J, *)
DO I = 1, 11
X(I), Yupper(I), Ylower(I)
So i would have assumed that the code would write to the file fort.(J) the X, Yupper and Ylower values for each 'I'...
Thanks very much for the prompt reply,
The DYc variable i was trying to get was just a delta value of Yc so I thought the I-(I-1) statement mathematically correct.
Also the code:
X(I), Yupper(I), Ylower(I)
I wanted the program to write all three variables to the file fort.(I)
sorry...
Hello,
I am pretty new to programming at all and am having some issues with working out why this program is not compiling:
Program MAIN
DO J = 1, 11
K = 10 + J
P = 0.4 !POSITION OF MAXIMUM CAMBER AT 40% CHORD!
M = FLOAT (J + 1)* 0.01...