Liking cljdoc? Tell your friends :D

diman.buckingham.dimensionless-product

Contains function

  • get-dimensionless-products
  • get-pi-expression

Given

(def varpars [ {:symbol "x", :quantity "length"}
               {:symbol "v", :quantity "velocity"}
               {:symbol "t", :quantity "time"}
               {:symbol "a", :quantity "acceleration"} ])
(def soln_matrix [ [1 -11 5 8]
                   [0 9 -4 -7] ])

to get the set of dimensionless products

=> (get-dimensionless-products soln_matrix varpars)
[{:symbol "pi0", :expression "x^(1)*v^(-11)*t^(5)*a^(8)"} {:symbol "pi1", :expression "v^(9)*t^(-4)*a^(-7)"}]

and to extract a particular dimensionless product from the set

=> (get-pi-expression (get-dimensionless-products soln_matrix varpars) "pi0")
"x^(1)*v^(-11)*t^(5)*a^(8)"
Contains function

 - `get-dimensionless-products`
 - `get-pi-expression`

Given
```
(def varpars [ {:symbol "x", :quantity "length"}
               {:symbol "v", :quantity "velocity"}
               {:symbol "t", :quantity "time"}
               {:symbol "a", :quantity "acceleration"} ])
(def soln_matrix [ [1 -11 5 8]
                   [0 9 -4 -7] ])
```
to get the [set of dimensionless products](https://neuralgraphs.com/lectures/diman/lectp8.html#p4_thispage)
```
=> (get-dimensionless-products soln_matrix varpars)
[{:symbol "pi0", :expression "x^(1)*v^(-11)*t^(5)*a^(8)"} {:symbol "pi1", :expression "v^(9)*t^(-4)*a^(-7)"}]
```
and to extract a particular dimensionless product from the set
```
=> (get-pi-expression (get-dimensionless-products soln_matrix varpars) "pi0")
"x^(1)*v^(-11)*t^(5)*a^(8)"
```
raw docstring

get-dimensionless-productsclj

(get-dimensionless-products solution_matrix varpars)
(get-dimensionless-products solution_matrix
                            varpars
                            variable_symbol_list
                            m
                            i
                            ans)

Given a solution matrix and its definition of variables/parameters of a system, this function returns a vector such that each element is a map with keys, :symbol and :expression. The elements of this vector represents the elements of the set of dimensionless products.

Given a solution matrix and its definition of variables/parameters of a system, this function returns
a vector such that each element is a map with keys, `:symbol` and `:expression`. The elements of this
vector represents the elements of the set of dimensionless products.
sourceraw docstring

get-pi-expressionclj

(get-pi-expression all_pi desired_pi)
(get-pi-expression all_pi desired_pi ans)

Given the set of dimensionless products (a vector of maps with keys, :symbol and :expression) and the symbol of a dimensionless product (as "piX" where X is an integer from 0, 1, 2, ...), this function returns the expression of the desired dimensionless product.

Given the set of dimensionless products (a vector of maps with keys, `:symbol` and `:expression`) and
the symbol of a dimensionless product (as `"piX"` where `X` is an integer from 0, 1, 2, ...), this
function returns the expression of the desired dimensionless product.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close