NASTRAN-G(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

🌸 NASTRAN-G(1) β€” the BRL-CAD girlie's guide to NASTRAN-G 🌸

okay so bestie, you found the nastran-g page in the BRL-CAD manual set, and honestly? it's a whole vibe. let's get into it πŸ’…


✨ NAME ✨

nastran-g β€” converts a NASTRAN finite element model into a BRL-CAD database, no cap 🫢


✨ SYNOPSIS ✨

nastran-g [-n] [-m] [-t tolerance] [-x lvl] [-X lvl] [-i nastran_file] -o database.g

like, that's the whole shape of it. flags flagging, files filing πŸ’–


✨ DESCRIPTION ✨

okay so here's the tea πŸ“ β€” nastran-g reads a NASTRAN bulk data deck and converts all the geometry it describes into a BRL-CAD database.g file. input comes from the file you name with -i, or from standard input if you don't give -i at all. conversion kicks off at the BEGIN BULK card β€” everything before that? ignored, not her problem, we don't see it πŸ‘‘.

now, lowkey important: only a subset of NASTRAN element types is handled. like, she's talented but she's not doing everything:

  • CROD and CBAR elements become right circular cylinders (RCC) β€” the radius is derived from the referenced PBAR cross-sectional area, iykyk 🌈
  • CTRIA3 and CQUAD4 shell elements get tessellated into surfaces ✨
  • grid points (GRID), coordinate systems (CORD1/CORD2), and properties (PBAR, PSHELL, BAROR) are interpreted as needed 🧚

all geometry is transformed into the default Cartesian coordinate system. the resulting primitives get grouped into combinations: pbars, shells, and a top-level all πŸ’œ

by default, the shell elements are written as bot(5) (BOT) solids, and the model is assumed to be in inches πŸ“


✨ OPTIONS ✨

  • -n β€” write surfaces created from CQUAD4 and CTRIA3 elements as NMG solids instead of the default BOT solids. the NMG glow-up πŸ’…
  • -m β€” treat the NASTRAN input as millimeters rather than the default inches. metric girlies rise πŸ¦‹
  • -t tolerance β€” set the distance tolerance, in millimeters: two vertices closer than this are treated as the same vertex. defaults to the BRL-CAD distance tolerance. tiny number, big consequences ✨
  • -x lvl β€” set the librt debug flags to the given hexadecimal value. hex girlies, this one's for you πŸ”₯
  • -X lvl β€” set the NMG debug flags to the given hexadecimal value. yes it's a capital X, no they're not the same flag, don't @ me πŸ’€
  • -i nastran_file β€” read the NASTRAN bulk data deck from nastran_file instead of standard input πŸ“‚
  • -o database.g β€” write the converted geometry to database.g. defaults to nastran.g. (but like, always pass -o, be intentional πŸŽ€)

✨ EXAMPLES ✨

Example 1. Convert a metric model and inspect the result πŸ‘‘

nastran-g -m -i wing.nas -o wing.g
mged wing.g 'tops'

converts the millimeter NASTRAN deck wing.nas to wing.g, then lists the top-level objects with mged(1) so the all combination can be drawn and examined. look at her go πŸ˜­πŸ’–

Example 2. Convert from a pipeline using NMG shells and a tightened tolerance πŸŒ€

cat model.bdf | nastran-g -n -t 0.005 -o model.g

reads the bulk data deck from standard input, writes shell elements as NMG solids, and treats vertices within 0.005 mm of each other as coincident. pipeline + tight tolerance = main character energy fr fr ⭐


✨ SEE ALSO ✨

brlcad(1), mged(1), bot(5) β€” go read those too, they're icons 🌸


✨ AUTHOR ✨

BRL-CAD Team 🫢


This software is Copyright (c) 1998-2026 by the United States Government as represented by U.S. Army Research Laboratory.


✨ BUG REPORTS ✨

reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§ found a bug? tell the devs, don't suffer in silence bestie πŸ™ˆ

and that's the page!! brought to you by the BRL-CAD crew β€” NASTRAN-G(1), BRL-CAD, and don't forget the date gang, go off πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from