Does anyone have an idea with which Fortran format the output described above can be generated?
Dear colleagues,
I am currently analyzing the structure of NX NASTRAN input files ("bulk.dat"). I came across a table with two pairs of values.
If you use 0.0 as both the abscissa and ordinate as the first pair of values and choose 2E6 and 7E12 for the second pair of values, NX writes the following output line to the file:
bb0.0000bb0.00002.0000+67.000+12
Dear colleagues,
I am currently analyzing the structure of NX NASTRAN input files ("bulk.dat"). I came across a table with two pairs of values.
On Thursday, October 13, 2022 at 8:44:31 AM UTC-7, muppe...@googlemail.com wrote:
Dear colleagues,
I am currently analyzing the structure of NX NASTRAN input files ("bulk.dat"). I came across a table with two pairs of values.As far as I know, those are legal for an input format such as F8.0.
But I believe that NASTRAN does its own I/O conversion much of the time.
Since the input format allows mixing of alphanumeric fields and
numeric fields, it isn't so easy.
And Fortran 66 doesn't have internal I/O, to make it easy to do such conversions after they are read in as characters.
With other variants of NASTRAN, such as NASTRAN 93 an MYSTRAN the code is available, and I did not look at NX NASTRAN but I would guess the format of the file is in their documenation or available on request? That might be easier than guessing how thefile was written, which could be a compound format or conditionally selected, etc.
With other variants of NASTRAN, such as NASTRAN 93 an MYSTRAN
the code is available, and I did not look at NX NASTRAN but I would
guess the format of the file is in their documenation or available on request?
That might be easier than guessing how the file was written, which
could be a compound format or conditionally selected, etc.
Dear colleagues,
I am currently analyzing the structure of NX NASTRAN input files ("bulk.dat"). I came across a table with two pairs of values.
....
The question seems not to be what is the file format, but why.
Or another way to look at it, how to write that from Fortran.
gah4 schrieb am Freitag, 14. Oktober 2022 um 09:53:10 UTC+2:
....
The question seems not to be what is the file format, but why.
Or another way to look at it, how to write that from Fortran.
. So I would like to create the bulk files with one or more Fortran programs
automatically and start NASTRAN via the command line in a batch file in a second step.
The reason for my question was indeed how to write this in Fortran as simply as possible.
I keep searching. If I find a solution, I'll write about it.
On Friday, October 14, 2022 at 5:45:24 AM UTC-7, muppe...@googlemail.com wrote:That is what I remember. The 16-character field seems like a good idea; but if I remember correctly there were ten 8-characters fields you could write into with basically any format, but if you have e+-NN and a period and a possible leading sign you are
gah4 schrieb am Freitag, 14. Oktober 2022 um 09:53:10 UTC+2:(snip)
....
The question seems not to be what is the file format, but why.
Or another way to look at it, how to write that from Fortran.
. So I would like to create the bulk files with one or more Fortran programs(snip)
automatically and start NASTRAN via the command line in a batch file in a second step.
The reason for my question was indeed how to write this in Fortran as simply as possible.As well as I know it, there is the 8 column form and 16 column form, and a program
I keep searching. If I find a solution, I'll write about it.
to convert the latter to the former.
It seems to me that the easiest way is to write the latter and use that program.
Current Fortran input routines will accept values without the E,
but not always write them. I am not sure that Fortran 66 programs would write them, but the standard sounds like they might.
(I believe some will write them with three digit exponents, though.)
If the number is positive, you don't need to leave a column for sign.
If the exponent is only one digit, you don't need a leading zero.
And you don't need the E if you have the sign.
But I don't think they will write them that way now.
There is also a free-form input routine, and I believe again a program to convert
to the 8 column form.
That is what I remember. The 16-character field seems like a good idea;
but if I remember correctly there were ten 8-characters fields you could write into with basically any format, but if you have e+-NN and a period
and a possible leading sign you are down to two significant digits
without using a compressed format,
The NX Nastran User's Guide states that both 0.7E1 and 70.-1 are allowed.
So the problem was easily solved by an 4G8.4E1 format. It is therefore not necessary to generate the output without the "E".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 159 |
Nodes: | 16 (0 / 16) |
Uptime: | 99:11:38 |
Calls: | 3,209 |
Files: | 10,563 |
Messages: | 3,009,783 |