Fortran Can Fortran be used to create a video of changing arrays?

AI Thread Summary
The discussion revolves around creating a video representation of changing arrays generated by a Fortran program that outputs to text or data files. The user has attempted to use VMD but encountered difficulties with file compatibility. The arrays vary in size from 10x10 to 100x100, and the user seeks an efficient method to visualize these changes without manually taking screenshots for each array. Suggestions include using terminal output to display the arrays, employing a for loop to control the display and timing, and utilizing ANSI codes to clear the screen before each snapshot. Recording the terminal output directly is also mentioned as a potential solution, depending on the user's graphics card capabilities.
Lukejambo
Messages
13
Reaction score
0
Hi, using Fortran that writes a large amount of arrays to a text/dat file.

Is there some kind of software where I can create a video of these arrays changing from beginning to end?

I've tried using VMD, but cannot get dat/text files working on it.

Any input will be appreciated.
 
Technology news on Phys.org
What is the size of the arrays?

It seems you could write them the terminal screen and blank the screen between snapshots to show them changing in place.
 
I need to change the size of the arrays each time I run the programme but they vary from 10x10 to 100x100.

Will I need to snapshot the screen manually? I can have over 100 arrays written to the file and it'll take a while to screen shot each one manually.
 
You could just record the video output depending on the graphics card you have.
 
Okay thanks and I'd need to do this in the terminal, is there a way of recording each array snapshot from a dat/text file?
 
I would use a for loop to control calculation and then display and then sleep for a second or less and then repeat.

Prior to each snapshot display I'd clear the screen using an ANSI screen code printed to the screen.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
2
Views
2K
Replies
11
Views
3K
Replies
5
Views
9K
Replies
12
Views
3K
Replies
16
Views
2K
Replies
10
Views
6K
Replies
5
Views
3K
Back
Top