Skip to content

Commit

Permalink
Merge pull request #20 from argonaut22/toml_output
Browse files Browse the repository at this point in the history
Several IO functions to allow saving and loading of aircraft models. Also includes some clean-up of old code.
  • Loading branch information
askprash committed Mar 21, 2024
2 parents ffe41de + 5c6ee55 commit 9e5d0cf
Show file tree
Hide file tree
Showing 27 changed files with 2,824 additions and 680 deletions.
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ version = "1.0.0-DEV"

[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Dierckx = "39dd38d3-220a-591b-8e3c-4c3a8c710a94"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand All @@ -17,6 +19,7 @@ PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
Roots = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Trapz = "592b5752-818d-11e9-1e9a-2b8ca4a44cd1"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
Expand Down
2 changes: 2 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ makedocs(
"sizing/sizing.md",
"sizing/weightmodels.md"
],
"Data and I/O" => "data_io/data_io.md",

"Miscellaneous" => Any[
"misc/structs.md",
"misc/dreladocs.md",
Expand Down
36 changes: 36 additions & 0 deletions docs/src/data_io/data_io.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

---
# Data structure basics

## `aircraft` struct

## `par` arrays

Refer to the [struct reference page](@ref datastructs) for add'l details.

---
# Inputting to models

## `.toml`s and the default input
tweak default input or import then tweak for example, to _____

```julia
igTmetal = 239 #index for max metal temp (see src/misc/index.inc)
ac = load_default_model() #creates new aircraft using default input .toml
ac.parg[igTmetal] = 2000 #set max metal temp to 2000 K
```

## Reading externals

temp


---

# Exporting from models

## Quicksave and quickload via .toml

## Saving model to a readable .toml

## Output data to .csv
32 changes: 0 additions & 32 deletions example/example_TF_run.jl

This file was deleted.

24 changes: 0 additions & 24 deletions example/example_drela_run.jl

This file was deleted.

Loading

0 comments on commit 9e5d0cf

Please sign in to comment.