Hi pals
Im gonna explain what I need to do.
First I would like to open 400 files e.g ISO1.dat,..ISO400.dat, within this files I have datas which means numbers for instance( X,Y,Z are vectors)...
Type: Posts; User: vikingcarioca
Hi pals
Im gonna explain what I need to do.
First I would like to open 400 files e.g ISO1.dat,..ISO400.dat, within this files I have datas which means numbers for instance( X,Y,Z are vectors)...
op was a big mistake of course ui=1.0; but my question now is focus in the results of u[i][j] that probably will 0's and 1's, could you advise me concerning this value u[i][j]
thanks in advance
Hey Pals, here I wrote one simple code to be more readable but something is wrong when i am compile it, the problem is print out the values of f[i][j] is wrong coz is a lot of 0's
...
I did it, but doesn't work :-((
well this is the whole code
/*Laplace equation 2D*/
/*Build the Mesh*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define max 500...
Heys Pals,
Currently I have the next problem with my code, because of matrix somebody can watch it and help me later thx in advance
float...
so what i need is to change float for double is this correct ?
well I am seeing the results of u[i][j] as 0's, means is wrong when I print out u[i][j], and i hink format %lf is correct. I am new in C not an expert
Hi, yeah sorry for my bad explanation, well in the section print results i would like to print out the velocities u[i][j] and v[i][j], but I did't get
Hi pals,
My problem is I cant print out my results, I tried a lot of things but unfortunately I didn't get help me please
follow my code
/*Laplace equation 2D*/
/*Build the Mesh*/...
well I tried to do what u had told me but I have some errors when i try to compile anyway here is my code
/*Laplace equation 2D*/
/*Build the Mesh*/
#include<stdio.h>
#include<stdlib.h>...
Hi pals, my question is about VOID in C, as I have some experience with fortran I remember that in fortran I can call a subroutine is the same in C with Void ans if is how can I call it
Thx in...
even in void as in the main I need to specify the size of the array?
well it still doesnt compile i have this error
for(j=1;j<=jmax;j++)
{
f[1][j]=ui*x[1];
f[imax][j]=ui*x[imax];
}
Error : arithmetic on pointer to an incomplete type
my question is other, concerning to void in my source I dont get to run it
hi again pals
I am trying to implemnt my source from fortran to c, using void instead subroutines as in fortran but something is wrong could you help me
here is my source
/*Laplace equation...
well some problem trying to implement my code from fortran to C with void somebody could help me
void contour (float f[][],float x[],float y[],int jmax, int imax)
{
for(j=1;j<=jmax;j++)...
So I can use VOID in C as I use subroutine in Fortran right
Hi pals, I tried to implement my code from FORTRAN to C, but I found a problem, how can I call a subroutine in C, I saw that I could use the command VOID but Im not sure, could you explain me this...
my problems is in the output of this code, I would like to have u[i][j] as an array in the output, it should be possible to do this?
fprintf(heat,"%1.5f\n%1.5f\t",t[j],u[i][j]);
what i need is my output as an array I dont know how can i get
Hi Pals, well my new problem is that I would like the output of my code as an array,and I dont get it at all, I would like to have the results of u[1][1] u[1][2] u[1][3] in my output
thanks
...
Thanks Mats it works. I really appreciate your help. I am learning C because my supervisor asked me to learn it
Regards
Hi pals I am new in C programm but I have some problems with division in my simple code
I have problems when I define h=xmax/nstep. I dont know why please help me
thx
#include<stdio.h>...