hello everybody. i have a quick question.
i am going to make a shape memory alloy model in ansys workbench 12.0 . as workbench does not have the SMA model, i have to make material properties in mechanical APDL and then make an input file. but i don't know how to define properties and make the...
hi.
I have a csv file name Relative which has 24 different data set containing characters as well as numbers. It looks like
Date,Hour,Min (RH),Max (RH),Avg (RH)
2012-08-28,0,85.190,87.200,86.325
2012-08-28,1,85.390,88.570,86.775
With reference to one of the thread reply in this forum...
How to read Symbolic equations from a file in fortran ??
I am working on Linux platform. I have a very big equation about two pages. I want to put that equation in a file.txt and then i want my FORTRAN program to read the equation from file.txt instead of making any function or subroutine...
Hello everyone,
I am working on the group delay of the front end filter of a GPS system. I am given the measurements of the S parameters of the filter in a touchstone file (s2p) in the following format.
! S-Parameter for B3521 in Touchstone format with Magnitude (lin) and Phase
! Normalised...
Homework Statement
I am attempting to modify an original set of code which uses a spline interpolator to plot a curve representing cumulative emissions (and its derivative annual emissions). The goal is to read in the historical emissions (from histem.txt) and then track the cumulative...
How To create an .exe file from Mathematica code ?
Hi,
I just wonder is there a way to create an exe file from a Mathematica code, that runs just with double-clicks on it ?
When it starts running it may ask some values for some variables and when one of them entered the others and the...
its for a year 11 assignment that i have handed in and had graded and for which i got a pretty poor mark...
i'm bitterly disappointed, though i think i can see my teacher's rationale for marking me down
anyway, its a pretty simple thing: exploration of population in Australia over past 100...
Hello, I am attempting to take data from a PDV laser reflected off a vibrating surface and then convert that data into a sound file. The data from the laser is stored in an excel spread sheet but I do not know how to convert those data points into any form of sound file. I'm thinking a .wav...
hi !
i have created finite element mesh in abaqus. i need to export this mesh i.e. the nodes and element details on a file. can anyone guide me in this respect
hi,
I have a big text file which includes lots of text and data (gaussian log file (it's a scan file))
and I need to extract some data from it.
so I need mathematica to search along the textual data and find some strings and put the value in front of that string into a variable.
can you...
Hi all,
I'm upgrading a legacy f77 code to f90 standards. I'm trying to make some of the global arrays as dynamic arrays so that at a later stage it would be easier for me to parallelize whole application.
Coming to my problem, I need to read some numbers from a text file so that I can...
I loaded Watcom 1.9. I built a simple project and added a simple file with just a CALL EXIT and END. But it gives a bunch of make errors. Does anyone know what is going on?
--- make files ---
W:\1830\port\test>type test.mk
project : W:\1830\port\test\test.exe .SYMBOLIC
!include...
Okay I am at my wit's end here. I need some personal guidance, reading internet information has gotten me nowhere. Sorry if this is the wrong sub forum first of all.
*stay calm stay calm*
I am trying to work on my undergraduate thesis as a latex document. I am using MikTex because that is...
Hi all !
I am a little new to FORTRAN and I am sorry if the title is confusing but I couldn't come up with anything better.
I have a file of which I am showing a snippet below:
*>>>>>>>>CHARMM22 All-Hydrogen Topology File for Proteins <<<<<<<
*>>>>>>>>>>>>>>>>>>>> and Nucleic Acids...
Hi,
I'm having some trouble reading in some data from a FITS file. The FITS file has visibility data for 256 different frequency channels but I only seem to be able to read in the data for the first frequency channel. My question is how do I change which frequency channel I want to look at, for...
Hi,
So I can read from a file by doing:
while read line; do
...
done<$fileame
Is it possible to change to reading from stdin instead of that file by changing the $filename variable instead of writing a new loop without a done< argument?
Thanks.
Homework Statement
I would need some help with extracting two matrices from a text file into Matlab.
First is the 60x3 matrix of node coordinates.
Second is the 24x8 matrix of node numbers assigned to elements.
I have 24 brick elements so each of the elements has 8 nodes.
But there are some...
Hey people,
1. The problem statement,
I'm doing a Uni Art assignment, and I'm going to be projecting a video onto a canvas (which I don't know the exact dimensions of yet).
Video file dimensions are stated as 1080 x 980 and so forth, whereas the real life canvas will be something like 50...
Hi everybody,
I need your help guys. I am using FORTRAN 90(or 95) and try to read a text file. The file contains many lines for instance something like this
CS
DIRECT
1.2 2.5 3.6
1.6 -2.3 2.9
....
....
....
I need to put each line inside a string variable for example
A="CS"...
I'm trying to read a dat (txt) file. Win7. It has this 80 character line that I want to read:
6364.1543 .95003538 .953223371.97825229 .100000 6.203.200 00.6480MEANOK A
The relevant parts of the program are:
real :: dummy
500 format(f10.4)
read(unit=astro_in, fmt=500)...
Hi everyone,
I'm programming witn Fortran 90.
Could anyone help me to read a .dat file who contains some columns of characters, it looks like the following:
2011/03/09 02:45:20.33 38.4350 142.8420 32.00 7.50 Mw 550 0.98 NEI 201103092006
2011/03/09 02:57:16.67 38.3610...
Homework Statement
I am trying to write a quick program that will let me experiment with some different file I/O functions. I want to practice taking data from a file, loading it into a 2D array, then performing some analysis on the data obtained from the file.
I have created a .txt file with...
I am writing a code to calculate and to operations with a large set of matrix elements, indexed by four numbers.
I am also writing these subroutines within a much larger code structure, so I do not have total freedom to modify the objects I am using.
I am trying something like this, which...
I am supposed to read from 2 text files containing numbers in ascending order, then output the all the numbers in ascending order to an output file, For some reason my output file is reaching an infinite loop it orders the numbers correctly but the last number reapeats forever. I am thinking it...
I felt like learning a bit about file input and output in C++. Tried some code, couldn't get it to work unless I made the path to the file a string literal, not a variable type. Why is this, and is there any way to get a string data type to be inputted as a path?
Homework Statement
I am attempting to transfer the data from a file into a 2D vector array. The data look like this:
1 2 3
4 5 6
7 8 9
However, the dimensions must be detected dynamically.
Homework Equations
The Attempt at a Solution
There are two files in this code, but I attempted to...
we can call data file using 'load' command. I have created data file using notepad. which I can only save it with .ext extension, not dat.
where to create .dat files? and how can I load .ext or .dat files? thanks
I've never had this issue before. My code will create the file and also output anything to terminal. But if I change the output from terminal to file, it does nothing. For example, this line
write(*,*) "ist1, ist2 =",ist1,ist2
outputs my two indices in every loop iteration. But...
Homework Statement
Write a PC SPIM program that can (1) Prompt for a complete file name. [Note: Probably should be in the same directory as the program.] (2) Echo the input. (3) Test to see if a file by that name already exists. If it does, query the user to see if destruction of the old...
Homework Statement
I'm starting my C++ project which requires me to call a file stream and output the data to four other output streams.
Before I start, I want to know if I need to have a .dat file premade and saved somewhere so I can call it or do I just make that file in my code by using...
Hi every one. I had try to make a simple program but it doesn't work because i am an amateur
The program as following:
PROGRAM: Sum_row_n_col
!
! PURPOSE: Read the 2-rank array from input disk file and calculate sums of all of the data in each row and each column in the array.
...
Dear forum,
I would like you to help me on .py scripts.
I am using CMS_SW and I want to do something like this:
cmsRun script.py file.root
where "file.root" is the file that the .py script needs to run... But I cannot find, how I declare it to the .py code...
these .py files, are configuration...
Can it be done? I do not really understand what the point of it is. I thought that using FILE I/O for example in C was only useful at the terminal where you can create files and read from them. What if I try FILE I/O programming in Pelles C IDE will it even create files in my directory??
I am trying to implement a register file and a test bench in VHDL. I think I have the register file itself done ok so I just have to test it with the test bench now. I'm a little unsure as to how write the stimulus process however and was hoping that someone could point me the right way. This...
I am going to be compleley honest, I don't know anything about Huffman coding. Except that I think I understand the Huffman tree algorithm. Can anyone assist me in getting started the problems states:
The preceding exercise compresses a file to generate
two files filename.huf and...
Even if I use correct method or code for deleting files and folders, when debugging I get error saying that it cannot access file and hence cannot delete it. What setting of computer I should inprove to enable the delete feature through visual basic 2008
Homework Statement
I'm not sure if this is quite where this belongs since it's not homework really, but I just need help programming and I figured this would be the place to ask. It's related to undergraduate research I'm doing so if that's not kosher just say so!
I want to write a Python...
How do i create a .txt file using a batch file with something written on it.
For example, i want to write this:-
i>>n;
i<<n;
a
b
c...
It has multiple lines and '>', so echo (text) >> test.txt doesn't work.
Is there a better way?
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...
So I have to make a .kml file, but I'm grabbing some info (latitude, longitude) from an .ndk file. I'm not quite sure how to do this. Right now I have this (sorry it sucks, I'm a total noob)
inputFilename = 'M:\week2\may11.ndk';
inputFile = fopen(inputFilename);
while (feof(inputFile)...
Hello Folks
I have a program code in Fortran f90, that program generate an output file and put that into the same directory where the program resides, I need to put that output file in a network path ex: \\server_name\resource_shared
I will appreciate if you could provide me the commands...
Hi all
I am using some code that was originally written in F77, but as it is many thousands of lines long, I haven't the time to go changing it. There is one section of code that refuses to work, but I'm assuming it must have at some point since the code has been used in the past...
Hello! I have a file that looks like this:
Where every line beginning with a T is a new data set. So basically I need each line in the file to look like this:
I need to merge every other line so that each data set lies on the same line. There can just be a space in between the two...
Hello,
I'm trying to open the "Exponential atmosphere" simulation found on this site.
It's a .py file, so I downloaded python, more specifically 2.7 for windows (I have windows vista). I downloaded the .py file, but when I try to open, a command window opens for a second, but it...