[overture] c-grid error

  • From: Joel Guerrero <joegi.geo@xxxxxxxxx>
  • To: overture@xxxxxxxxxxxxx
  • Date: Thu, 31 Jan 2008 09:52:47 -0800 (PST)

Hi 

I trying to setup a case with a moving c-grid, but I getting this error. 


Mapping:getGrid called, remake grid for mapping c-grid
cgins: boundaryAdjustment.C:663: int 
Ogen::updateBoundaryAdjustment(CompositeGrid&, const int&, const int&, 
intSerialArray*, realSerialArray*, realSerialArray*, IntegerArray&): Assertion 
`grid!=grid2' failed.
Aborted


 Which I think is related to the mixed-boundary used during the grid 
generation.  Any idea how can I avoid this error?  I also attach the cgrid ,cmd 
file.


Cheers,


Joel


*
* make a c-grid
*
create mappings
*
$factor=2; $grid = "cairfoil.hdf";
* 
$ds=.025/$factor;
*
  rectangle
*
    mappingName
      backGround
    set corners
      -2 4 -2 2
    lines
    240 160
    exit
*
  spline
    enter spline points
    189
2.0    1.e-5
1.95    1.e-5
1.9    1.e-5
1.85    1.e-5
1.8    1.e-5
1.75    1.e-5
1.7    1.e-5
1.65    1.e-5
1.6    1.e-5
1.55    1.e-5
1.5    1.e-5
1.45    1.e-5
1.4    1.e-5
1.35    1.e-5
1.3    1.e-5
1.25    1.e-5
1.2    1.e-5
1.15    1.e-5
1.1    1.e-5
1.00000000    0
0.99956142    0.00006207
0.99824643    0.00024799
0.99605735    0.00055681
0.99299802    0.00098703
0.98907380    0.00153653
0.98429158    0.00220264
0.97865975    0.00298216
0.97218819    0.00387140
0.96488824    0.00486623
0.95677273    0.00596209
0.94785588    0.00715407
0.93815334    0.00843693
0.92768213    0.00980517
0.91646062    0.01125305
0.90450850    0.01277464
0.89184673    0.01436385
0.87849753    0.01601447
0.86448431    0.01772019
0.84983167    0.01947461
0.83456530    0.02127128
0.81871199    0.02310368
0.80229956    0.02496523
0.78535678    0.02684929
0.76791340    0.02874916
0.75000000    0.03065806
0.73164802    0.03256910
0.71288965    0.03447529
0.69375779    0.03636949
0.67428602    0.03824445
0.65450850    0.04009273
0.63445991    0.04190673
0.61417544    0.04367868
0.59369066    0.04540065
0.57304151    0.04706451
0.55226423    0.04866201
0.53139526    0.05018478
0.51047121    0.05162434
0.48952879    0.05297217
0.46860474    0.05421975
0.44773577    0.05535862
0.42695849    0.05638045
0.40630934    0.05727711
0.38582456    0.05804075
0.36554009    0.05866386
0.34549150    0.05913940
0.32571398    0.05946082
0.30624221    0.05962219
0.28711035    0.05961828
0.26835198    0.05944458
0.25000000    0.05909742
0.23208660    0.05857399
0.21464322    0.05787239
0.19770044    0.05699166
0.18128801    0.05593181
0.16543470    0.05469379
0.15016833    0.05327951
0.13551569    0.05169178
0.12150247    0.04993427
0.10815327    0.04801148
0.09549150    0.04592861
0.08353938    0.04369152
0.07231787    0.04130658
0.06184666    0.03878062
0.05214412    0.03612076
0.04322727    0.03333431
0.03511176    0.03042863
0.02781181    0.02741102
0.02134025    0.02428859
0.01570842    0.02106812
0.01092620    0.01775595
0.00700198    0.01435791
0.00394265    0.01087920
0.00175357    0.00732430
0.00043858    0.00369693
0.00000000    0.00000000
0.00043858    -0.00369693
0.00175357    -0.00732430
0.00394265    -0.01087920
0.00700198    -0.01435791
0.01092620    -0.01775595
0.01570842    -0.02106812
0.02134025    -0.02428859
0.02781181    -0.02741102
0.03511176    -0.03042863
0.04322727    -0.03333431
0.05214412    -0.03612076
0.06184666    -0.03878062
0.07231787    -0.04130658
0.08353938    -0.04369152
0.09549150    -0.04592861
0.10815327    -0.04801148
0.12150247    -0.04993427
0.13551569    -0.05169178
0.15016833    -0.05327951
0.16543470    -0.05469379
0.18128801    -0.05593181
0.19770044    -0.05699166
0.21464322    -0.05787239
0.23208660    -0.05857399
0.25000000    -0.05909742
0.26835198    -0.05944458
0.28711035    -0.05961828
0.30624221    -0.05962219
0.32571398    -0.05946082
0.34549150    -0.05913940
0.36554009    -0.05866386
0.38582456    -0.05804075
0.40630934    -0.05727711
0.42695849    -0.05638045
0.44773577    -0.05535862
0.46860474    -0.05421975
0.48952879    -0.05297217
0.51047121    -0.05162434
0.53139526    -0.05018478
0.55226423    -0.04866201
0.57304151    -0.04706451
0.59369066    -0.04540064
0.61417544    -0.04367868
0.63445991    -0.04190673
0.65450850    -0.04009273
0.67428602    -0.03824445
0.69375779    -0.03636949
0.71288965    -0.03447529
0.73164802    -0.03256910
0.75000000    -0.03065806
0.76791340    -0.02874916
0.78535678    -0.02684929
0.80229956    -0.02496523
0.81871199    -0.02310368
0.83456530    -0.02127128
0.84983167    -0.01947461
0.86448431    -0.01772019
0.87849753    -0.01601447
0.89184673    -0.01436385
0.90450850    -0.01277464
0.91646062    -0.01125305
0.92768213    -0.00980517
0.93815334    -0.00843693
0.94785588    -0.00715407
0.95677273    -0.00596209
0.96488824    -0.00486623
0.97218819    -0.00387140
0.97865975    -0.00298216
0.98429158    -0.00220264
0.98907380    -0.00153653
0.99299802    -0.00098703
0.99605735    -0.00055681
0.99824643    -0.00024799
0.99956142    -0.00006207
1.00000000    0
1.1    -1.e-5
1.15    -1.e-5
1.2    -1.e-5
1.25    -1.e-5
1.3    -1.e-5
1.35    -1.e-5
1.4    -1.e-5
1.45    -1.e-5
1.5    -1.e-5
1.55    -1.e-5
1.6    -1.e-5
1.65    -1.e-5
1.7    -1.e-5
1.75    -1.e-5
1.8    -1.e-5
1.85    -1.e-5
1.9    -1.e-5
1.95    -1.e-5
2.0    -1.e-5
    lines
    300
    mappingName
      c-surface
    exit
*
  hyperbolic
    distance to march
    1
    lines to march 
    60
    points on initial curve 300
*    uniform dissipation coefficient
*      .02
*    grow grid in opposite direction
    geometric stretching, specified ratio
      1
    generate
    smoothing...
    GSM:BC: top slide
    GSM:BC: bottom slide
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    GSM:smooth grid
    close smoothing options
  exit
*
  stretch coordinates
    Stretch r2:exp
    STP:stretch r2 exp: parameters 0 1 1 5 0.5 (a0,ar,a,b,c)
    close r2 stretching parameters
    Stretch r1:tanh
    STP:stretch r1 tanh: parameters 0 1 -0.45 1.9 0.5 (a0,ar,a,b,c)
    close r1 stretching parameters
    stretch grid
* 
    STRT:name c-grid
    boundary conditions
    0 0 1 0
    share
    0 0 1 0
    exit
*
exit
generate an overlapping grid
    backGround
    c-grid
  done
  * display intermediate results
      change parameters
*    order of accuracy
*    fourth order
    mixed boundary 
      c-grid 
        bottom (side=0,axis=1) 
        c-grid 
          r matching tolerance 
          .001
          * determine 
          done 
      done 
    ghost points 
      all 
      2 2 2 2 2 2
    exit     
    compute overlap
    exit
save a grid
cnaca.hdf
cnaca
exit





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Other related posts: