NASTRAN-G(1)
πΈ 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:
CRODandCBARelements become right circular cylinders (RCC) β the radius is derived from the referencedPBARcross-sectional area, iykyk πCTRIA3andCQUAD4shell 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 fromCQUAD4andCTRIA3elements 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 π¦-ttolerance β 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 β¨-xlvl β set the librt debug flags to the given hexadecimal value. hex girlies, this one's for you π₯-Xlvl β 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 π-inastran_file β read the NASTRAN bulk data deck from nastran_file instead of standard input π-odatabase.g β write the converted geometry to database.g. defaults tonastran.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 π«Ά
β¨ COPYRIGHT β¨
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
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms