Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsbsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SASC
jsbsim
Commits
5787ade4
Commit
5787ade4
authored
13 years ago
by
James Goppert
Browse files
Options
Downloads
Patches
Plain Diff
Improved post processing.
parent
fec0b9c9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
scripts/737_cruise_steady_turn_simplex.xml
+78
-0
78 additions, 0 deletions
scripts/737_cruise_steady_turn_simplex.xml
src/utilities/post_process.sh
+14
-7
14 additions, 7 deletions
src/utilities/post_process.sh
with
95 additions
and
7 deletions
.gitignore
+
3
−
0
View file @
5787ade4
...
@@ -15,8 +15,11 @@
...
@@ -15,8 +15,11 @@
src/JSBSim*
src/JSBSim*
src/FGComm*
src/FGComm*
src/Trim*
src/Trim*
prep_plot
# Generated Files
# Generated Files
*.csv
*.pdf
*.tgz
*.tgz
*.deb
*.deb
setup
setup
...
...
This diff is collapsed.
Click to expand it.
scripts/737_cruise_steady_turn_simplex.xml
0 → 100755
+
78
−
0
View file @
5787ade4
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?>
<runscript
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://jsbsim.sf.net/JSBSimScript.xsd"
name=
"Cruise flight with steady turn in 737."
>
<description>
This is a very simple script that trims the aircraft with running
engines at altitude and runs out to 100 seconds. Some state data
is printed out at ten second intervals.
</description>
<use
aircraft=
"737"
initialize=
"cruise_steady_turn_init"
/>
<run
start=
"0"
end=
"100"
dt=
"0.008333"
>
<property
value=
"0"
>
simulation/notify-time-trigger
</property>
<event
name=
"Set engines running"
>
<condition>
simulation/sim-time-sec le 0.1
</condition>
<set
name=
"propulsion/engine[0]/set-running"
value=
"1"
/>
<set
name=
"propulsion/engine[1]/set-running"
value=
"1"
/>
<notify/>
</event>
<!--
For "do_simple_trim" (Classic trim):
0: Longitudinal
1: Full
2: Ground
3: Pullup
4: Custom
5: Turn
6: None
-->
<event
name=
"Trim"
>
<condition>
simulation/sim-time-sec gt 0.1
</condition>
<set
name=
"simulation/do_simplex_trim"
value=
"5"
/>
<delay>
5.0
</delay>
<notify>
<property>
propulsion/engine[0]/n2
</property>
<property>
propulsion/engine[1]/n2
</property>
<property>
propulsion/engine[0]/thrust-lbs
</property>
<property>
propulsion/engine[1]/thrust-lbs
</property>
<property>
velocities/vc-kts
</property>
<property>
velocities/vc-fps
</property>
<property>
velocities/vt-fps
</property>
<property>
attitude/phi-rad
</property>
<property>
attitude/theta-rad
</property>
<property>
attitude/psi-rad
</property>
</notify>
</event>
<event
name=
"Repeating Notify"
persistent=
"true"
>
<description>
Output message at 5 second intervals
</description>
<notify>
<property>
propulsion/engine[0]/n2
</property>
<property>
propulsion/engine[1]/n2
</property>
<property>
propulsion/engine[0]/thrust-lbs
</property>
<property>
propulsion/engine[1]/thrust-lbs
</property>
<property>
position/h-agl-ft
</property>
<property>
velocities/vc-kts
</property>
<property>
velocities/vc-fps
</property>
<property>
velocities/vt-fps
</property>
<property>
attitude/phi-rad
</property>
<property>
attitude/theta-rad
</property>
<property>
attitude/psi-rad
</property>
</notify>
<condition>
simulation/sim-time-sec >= simulation/notify-time-trigger
</condition>
<set
name=
"simulation/notify-time-trigger"
value=
"5"
type=
"FG_DELTA"
/>
</event>
</run>
</runscript>
This diff is collapsed.
Click to expand it.
src/utilities/post_process.sh
+
14
−
7
View file @
5787ade4
#!/bin/bash
#!/bin/bash
PREP_PLOT
=
./src/utilities/prep_plot
# prepare plots from data
# prepare plots from data
for
file
in
$(
ls
*
.csv
)
for
file
in
$(
ls
*
.csv
|
sed
s/
\.
csv//g
)
do
do
echo
$file
echo
$file
post processing
if
[
-f
data_plot/
$file
:r
.xml
]
if
[
-f
data_plot/
$file
.xml
]
then
then
echo
preparing plot
for
:
$file
echo
-e
"
\t
using xml style:
$file
.xml"
prep_plot
$file
--plot
=
data_plot/
$file
:r.xml | gnuplot
$PREP_PLOT
$file
.csv
--plot
=
data_plot/
$file
.xml | gnuplot
else
echo
-e
"
\t
using comprehensive plot"
$PREP_PLOT
$file
.csv
--comp
| gnuplot
fi
fi
done
done
# convert ps to pdf
# convert ps to pdf
for
file
in
$(
ls
*
.ps
)
for
file
in
$(
ls
*
.ps
|
sed
s/
\.
ps//g
)
do
do
gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=
pdfwrite
-sOutputFile
=
$file
.pdf
$file
echo
-e
"
\t
converting to pdf:
$file
"
gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=
pdfwrite
-sOutputFile
=
$file
.pdf
$file
.ps
rm
$file
.ps
done
done
# vim:ts=4:sw=4:expandtab
# vim:ts=4:sw=4:expandtab
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment