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

Click For Summary

Discussion Overview

The discussion revolves around the use of Fortran to create a video representation of changing arrays, focusing on the methods and software available for visualizing these arrays over time. Participants explore various approaches to capture and display the arrays effectively.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant inquires about software options for creating a video from arrays written to a text/dat file, mentioning difficulties with VMD.
  • Another participant suggests displaying the arrays in the terminal and clearing the screen between snapshots to visualize changes.
  • A participant notes the variability in array sizes (from 10x10 to 100x100) and questions the feasibility of manually capturing each snapshot.
  • There is a suggestion to record the terminal output as a video, depending on the capabilities of the graphics card.
  • A later reply proposes using a for loop to automate the display of arrays, incorporating a pause between snapshots and utilizing ANSI codes to clear the screen.

Areas of Agreement / Disagreement

Participants present multiple approaches to the problem, with no consensus on a single method or software solution. The discussion remains unresolved regarding the best way to visualize the changing arrays.

Contextual Notes

Participants express uncertainty about the effectiveness of various methods and the limitations of the software mentioned. There are also considerations regarding the manual effort required for capturing snapshots.

Who May Find This Useful

Individuals interested in programming with Fortran, particularly those looking to visualize data or create animations from array outputs.

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.
 

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
3K
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
7K
  • · Replies 5 ·
Replies
5
Views
4K