GithubHelp home page GithubHelp logo

Nastran substracting about nastran-95 HOT 13 OPEN

kris222 avatar kris222 commented on June 23, 2024
Nastran substracting

from nastran-95.

Comments (13)

AeroDME avatar AeroDME commented on June 23, 2024

NASTRAN is expecting the SOF1 environment to be pointing to the d02021a.sof1 file that was generated by your D02-02-1A run.

from nastran-95.

kris222 avatar kris222 commented on June 23, 2024

Hi AeroDME.
I cannot see any reference in d02022a.inp to folder or files in D02-02-1A folder. How D02-02-2A run knows that needs to refer to d02021a.sof1?
In runs other than d02021a I am getting error:
, ERROR ENCOUNTERED IN DSREAD, UNIT= 90 RECORD= 1 STATUS= 5002
But if I change the line in second run : (add ",NEW")
SOF(1) = FT18,950 $ DEC VAX
to
SOF(1) = FT18,950,NEW $ DEC VAX

then I have no errors, however only SOF for second step is generated ( does not include first run data, I am assuming)

from nastran-95.

AeroDME avatar AeroDME commented on June 23, 2024

Do you know if your SOF1 environment variable is being set?

from nastran-95.

kris222 avatar kris222 commented on June 23, 2024

from nastran-95.

AeroDME avatar AeroDME commented on June 23, 2024

So, there is a nastran csh script. I did not use it. I made a python script for kicking off the nastran executable.

it is in the sbin directory of my fork:

https://github.com/AeroDME/NASTRAN-95/

this script will take the argument --SOF1

also --help will give a discription of the options in the script.

from nastran-95.

kris222 avatar kris222 commented on June 23, 2024

Thanks Dan,
I am using Nastran compiled for Windows, but at least I know that running Nastran inp files is not the only thing I have to do.
I will try to figure how to set up SOF environment based on your files
Regards,
Kris

from nastran-95.

AeroDME avatar AeroDME commented on June 23, 2024

Gotcha.

The problem I had is that the error messages do not tell you what the actual problem is. I just brute force set all the variables that are read by nastrn.f using that python script I pointed you to earlier.

Someday when time allows, I would like to start migrating some of that code to FORTRAN 90.

There are some other forks, too. More since last I looked. I am sure someone smarter than I is doing something cool with it! LOL

Have fun.

from nastran-95.

maniin avatar maniin commented on June 23, 2024

Hi Dan,

SOF1 and SOF2..what is the difference. In this example case Example2 needs Example1's SOF file. How this is setting in linux, so that I can also try it in windows.

Thanks
Manikandan N

from nastran-95.

AeroDME avatar AeroDME commented on June 23, 2024

Hi Manikandan,

SOF1 and SOF2 are simply variables holding substructure file names. I do not know if you HAVE to use SOF1 first, then SOF2 for the second. I do know that the source (nastrn.f) checks for SOF1 thru SOF10. So, I would assume you can have up to 10 substructrue files. Again, I do not know if they have to be used in order or anything. I would assume it depends on how you reference them in your master bulk data file (model input file).

On the Linux build, my startup script sets environment variables named "SOF1, SOF2, ... " Those variables must hold the filename of the sof1 file including the path relative to where the nastrn.exe has started execution.

on DOS:

SET SOF1=.\outputdir\d02021a.sof1

Note that you must check the path for wherever it is on your system.

Here is a job script that is generated by the nastran.py script I pointed you to earlier. It is a bash script, so it won't work on windows, but it will give you and idea of what environment variables to set. Each "export" statement is setting an environment variable. I am not entirely sure that all variables are required for each run. When I was originally trying to get this to work, I got tired of trying each one, so I just brute force set everyone that the main program was looking for.

##############################################
#!/bin/bash
#PBS -q nas
#PBS -N d02023a
#PBS -k n
export DIRCTY=/tmp/a956984d
export RFDIR=/home/dan/nastran/rf
export NPTPNM=OUTPUT/d02023a.nptp
export PLTNM=OUTPUT/d02023a.plt
export DICTNM=OUTPUT/d02023a.dict
export PUNCHNM=OUTPUT/d02023a.pch
export OPTPNM=OUTPUT/d02023a.opt
export LOGNM=OUTPUT/d02023a.f04
export IN12=OUTPUT/d02023a.in12
export OUT11=OUTPUT/d02023a.out11
export FTN11=OUTPUT/d02023a.f11
export FTN12=OUTPUT/d02023a.f12
export FTN13=OUTPUT/d02023a.f13
export FTN14=OUTPUT/d02023a.f14
export FTN15=OUTPUT/d02023a.f15
export FTN16=OUTPUT/d02023a.f16
export FTN17=OUTPUT/d02023a.f17
export FTN18=OUTPUT/d02023a.f18
export FTN19=OUTPUT/d02023a.f19
export FTN20=OUTPUT/d02023a.f20
export FTN21=OUTPUT/d02023a.f21
export FTN22=OUTPUT/d02023a.f22
export FTN23=OUTPUT/d02023a.f23
export SOF1=OUTPUT/d02021a.sof1
export SOF2=OUTPUT/d02023a.sof2
export DBMEM=12000000
export OCMEM=2000000
cd /home/dan/nastran
mkdir -p /tmp/a956984d
/home/dan/nastran/bin/nastran.x <inp/d02023a.inp >OUTPUT/d02023a.f06
rm -rf /tmp/a956984d
##############################################

Hope this helps!
Dan

from nastran-95.

maniin avatar maniin commented on June 23, 2024

Thanks Dan,
I try out again and update you

from nastran-95.

 avatar commented on June 23, 2024

There are 3 stages in this demo.
Phase1 is to generate SOL file for each substructure. It includes 1A, 2A and 3A. Hub, root and vane.
Phase2 is to use the above substructure SOL files, to form the final whole structure (windmill) and solve it. This is done in 4A.
Phase3 is to get different kind of results for each substructure. This is done in 5A. 6A and 7A.

I got SOL of 1A, but for 2A, the SOL is empty. Try to figure it out now.

from nastran-95.

JuanP74 avatar JuanP74 commented on June 23, 2024

Hi,
it works OK for me. Only have to modify the nastran script for 2nd and subsequent runs as follows:

#if [ -z "$SOF1" ]; then
#	export SOF1=$1.sof1
#fi
export SOF1=d02021a.inp.sof1

I am using Ubuntu nastran installation, the nastran script is the file /usr/bin/nastran

Run 4 (assembled structure) is not empty. Only diplacements and loads have been requested. I

attach it in case might be useful for someone else.
d02024a.inp.out.zip

more info in /um/INTR.TXT paragraph 1.10 and /um/SUBS.TXT

from nastran-95.

 avatar commented on June 23, 2024

Yes, that did the trick. Thank you very much.

sub

from nastran-95.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.