--- myst: substitutions: macro: python: 1-5,18-35,38-41 cpp: 4-6,10-26,29-32,46 bloc1: python: "19" cpp: "10" bloc2: python: 22-30 cpp: 13-21 bloc3: python: "35" cpp: "26" bloc4: python: "39" cpp: "30" console: python: 2-37 cpp: 6-41 --- # Macro "**sensitivityFASTFunctionFlowrate.{{extension}}**" ## Objective The objective of this macro is to perform a Fast sensitivity analysis on a set of eight parameters used in the `flowrateModel` model described in [](#launcher_introduction_simple_case_problem). ## Macro {{uranie}} {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/uranie/doc/sensitivity/use_cases/" + language + "/sensitivityFASTFunctionFlowrate." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + macro[language] + "\n" + "```" }} The function `flowrateModel` is loaded from the macro `UserFunctions.C` (the file can be found in `${URANIESYS}/share/uranie/macros`) {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/uranie/doc/sensitivity/use_cases/" + language + "/sensitivityFASTFunctionFlowrate." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc1[language] + "\n" + "```" }} Each parameter is related to the {{tds}} as a `TAttribute` and obeys an uniform law on specific interval: {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/uranie/doc/sensitivity/use_cases/" + language + "/sensitivityFASTFunctionFlowrate." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc2[language] + "\n" + "```" }} To instantiate the `TFast` object, one uses the {{tds}}, the name of the function and the number of samplings needed to perform sensitivity analysis (here nS=500): {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/uranie/doc/sensitivity/use_cases/" + language + "/sensitivityFASTFunctionFlowrate." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc3[language] + "\n" + "```" }} Computation of sensitivity indexes: {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/uranie/doc/sensitivity/use_cases/" + language + "/sensitivityFASTFunctionFlowrate." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc4[language] + "\n" + "```" }} ## Graph {{ "```{" "figure" "} " + parent_dir + "/roottest/build/uranie/doc/sensitivity/use_cases/" + language + "/fast/sensitivityFASTFunctionFlowrate.png\n" + ":align: center\n" + ":name: use_cases_sensitivityFASTFunctionFlowrate\n" + figure_scale + "\n" + "\n" + "Graph of the macro **\"sensitivityFASTFunctionFlowrate." + extension + "\"**" + "\n" + "```" }} ## Console {{ "```{" "literalinclude" "} " + parent_dir + "/roottest/build/uranie/doc/sensitivity/use_cases/" + language + "/sensitivityFASTFunctionFlowrate_clean.log" + "\n" + ":language: none\n" + ":lines: " + console[language] + "\n" + "```" }}