openVSP to CART3D

217 views
Skip to first unread message

DR Millman

unread,
May 9, 2013, 2:26:31 PM5/9/13
to ope...@googlegroups.com
Rob,

I'm following your tutorial example. I get to the ./aero.csh step, and things go awry. I'm in a csh when I execute, but the ./aero.csh does not work. I did get an execution when I typed "source aero.csh", but flowcart fails with a status 253. Any ideas?

Thanks

Danny

Rob McDonald

unread,
May 9, 2013, 4:29:00 PM5/9/13
to ope...@googlegroups.com
Danny,

You should be able to run ./aero.csh from any shell -- bash, ksh, csh, whatever.

It may be that the executable bit is not set. Consequently, it is not
executable itself, but when run through source, it works. Try
this....

chmod +x aero.csh

As for status 253, I have no idea. I suggest you ask on the Cart3D
Google Group.

Digging into aero.csh, it appears that 253 is a file parsing error in
flowCart. If you've gotten that far, I don't have any ideas what the
problem is.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "OpenVSP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openvsp+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

DR Millman

unread,
May 10, 2013, 11:34:49 AM5/10/13
to ope...@googlegroups.com
Rob,

I just needed to change windows line endings to UNIX line endings. It's working now.

Thanks

Danny

Rob McDonald

unread,
May 10, 2013, 11:51:57 AM5/10/13
to ope...@googlegroups.com
Great, glad to hear it.

In which file did you need to make the change?

Rob

DR Millman

unread,
May 11, 2013, 11:20:34 PM5/11/13
to ope...@googlegroups.com
Both input.cntl and aero.csh.

DR Millman

unread,
Jun 6, 2013, 11:19:04 AM6/6/13
to ope...@googlegroups.com
Rob,

I wanted to run CART3D without adaptation. So I used the oneraM6 model from the tutorial and the input.cntl file. In the input.cntl file, I removed the design info. I wrote a commands.csh script to setup and run flowCart. The results indicated that the axes are not what I expected. I reran setting alpha to zero and beta to 3.06, and the lift coefficient made sense, but the drag coefficient was too low.

I attached the files I used: input1.cntl is modified from the tutorial, and loadsCC1.dat are the clic2 results; input2.cntl exchanges alpha with beta and loadsCC2.dat are the results.

Any help you could provide to get me properly oriented would be greatly appreciated.

Thanks,

Danny
commands.csh
input1.cntl
loadsCC1.dat
input2.cntl
loadsCC2.dat

Rob McDonald

unread,
Jun 6, 2013, 12:07:26 PM6/6/13
to ope...@googlegroups.com
Danny,

I've never run Cart3D 'manually'. When I want to run a case with no
adaptation, I still use aero.csh, but I just turn off adaptation. If
your Cart3D distribution is different, this won't work for you.

You'll probably have better luck asking on the Cart3D group, but I'll
give it a shot.

In your commands.csh, you do this...

set y_is_spanwise = -y_is_spanwise

But, flowcart does not read variables like this from the environment.
I believe everything is passed to flowcart on the command line. I
believe the actual execution of flowCart happens on line 659 of
aero.csh as downloaded from the Wiki.

( $timer $flowCart $verb -his -N $it_fc -T $binaryIO -clic
$mg_gs_fc $mg_levs -limiter $limiter -tm $tm -cfl $cfl $y_is_spanwise
$fc_restart $fmg $blcc $buffLim $subcell >> cart3d.out ) >&! $timeInfo

It is a mess, but you can see that the variable $y_is_spanwise is
passed to flowcart on the command line.

So, I would try this in your script....

flowCart -mg 4 -N 100 -his -T -clic -v -y_is_spanwise

Rob

DR Millman

unread,
Jun 6, 2013, 12:45:54 PM6/6/13
to ope...@googlegroups.com
That did it! Thanks!
Reply all
Reply to author
Forward
0 new messages