bernardparent / CFDWARP

Computational Fluid Dynamics, Waves, Reactions, Plasmas
https://overbrace.com/bernardparent/viewforum.php?f=22
45 stars 23 forks source link

Unable to generate grids #1

Closed chintagunta closed 4 years ago

chintagunta commented 4 years ago

Dear sir,

I am unable to generate the grid files out of the box. Kindly help me on this. Thank you.

Kind regards, Dr Abhishek

./tecgrid2D grid.2D.sinewall 1.tec Reading grid file grid.2D.sinewall.. Segmentation fault (core dumped)

TRPrasanna commented 4 years ago

The syntax in grid.2D.sinewall is a bit outdated. You could try putting :

i1=1;  
i2=40;  
j1=1;  
j2=30;  
dwa11=0.001;  
Grid(  
  Size ( i1,j1, i2,j2 );  
  Corners ( i1,j1, i2,j2, 0,0, 1,1);  
  JoinCorners ( i1,j1, i2,j1, FE,0.5,dwa11,1, N0,0.5,1,1 );  
  JoinCorners ( i1,j2, i2,j2, FE,0.5,dwa11,1, N0,0.5,1,1 );  
  Equation ( i1,j1, i2,j1, y, y=0.1*sin(x*20));  
  Join ( i1,j1, i2,j2, j, FE,0.7,dwa11,1 );  
);  

inside grid.2D.sinewall . This code has been taken from the GRIDG documentation in CFDWARP/lib/gridg/doc .

chintagunta commented 4 years ago

Worked, thank you for your help.

bernardparent commented 4 years ago

The next version will fix the grid examples in lib/gridg/eg. They are indeed quite outdated.

On Tue, Nov 10, 2020 at 9:56 AM Abhishek Chintagunta < notifications@github.com> wrote:

Closed #1 https://github.com/bernardparent/CFDWARP/issues/1.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bernardparent/CFDWARP/issues/1#event-3979955259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4M5DX3CJDVTOAVAEA6LQDSPFWDFANCNFSM4TQRHFZA .