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

Click For 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
7
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 5 ·
Replies
5
Views
4K