> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/portugues/nocoes-basicas-de-modelagem/parameters.md).

# Parâmetros

Parâmetros são funções que retornam um valor no modelo em cada etapa de tempo. Esses valores podem ser constantes, com base no tempo (por exemplo, no dia ou no mês), um cálculo baseado no armazenamento do reservatório da etapa de tempo e muitos outros cálculos. O parâmetro personalizado também pode ser escrito em Python.

Esta página descreve (a maioria) os tipos de parâmetros suportados pelo Pywr. Uma visão geral dos parâmetros em Pywr pode ser encontrada [aqui](https://pywr.github.io/pywr-docs/master/json.html#parameters). A lista completa de parâmetros embutidos do Pywr é encontrada [aqui](https://pywr.github.io/pywr-docs/master/api/pywr.parameters.html).

## 1. Criando um parâmetro

Em uma rede, clique na guia “Parâmetros”:

<figure><img src="/files/V00mMsIX5TeTPIwcJu0v" alt=""><figcaption><p>Clique na guia “parâmetros”</p></figcaption></figure>

Ao lado da seção “Categorias do tipo de parâmetros”, clique no botão '+' e selecione 'PYWR\ \_PARAMETER'.

<figure><img src="/files/GD5E6XjZTFehWyaTNeDt" alt=""><figcaption><p>Clique em pywr_parameter</p></figcaption></figure>

Uma entrada de texto aparecerá. Digite o nome do seu parâmetro:\\

<figure><img src="/files/GIMzJNA9D1QVNH9IDkay" alt=""><figcaption><p>Insira o nome do parâmetro</p></figcaption></figure>

Modifique o parâmetro conforme necessário no editor JSON fornecido:

<figure><img src="/files/prdCiOZ8CGHyPiGEJEwm" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?v=u-3hotZj_44>" %}
Vídeo demonstrando como usar um parâmetro para vários nós
{% endembed %}

## 2. Editores de parâmetros em WaterStrategy

Para simplificar as modificações de parâmetros, WaterStrategy oferece editores para parâmetros comumente usados, como parâmetros de perfil mensal, com valores padrão pré-preenchidos, e editores gráficos para simplificar a inserção de dados.

#### Exemplo de editor de parâmetros

Na guia Parâmetros, ao adicionar um novo parâmetro, selecione 'PYWR\_PARÂMETRO\_\ \_PROFILE' MENSAL, conforme mostrado:\\

<figure><img src="/files/wV7UGSe7QBTc2JnH6xab" alt=""><figcaption><p>Selecione PYWR_PARÂMETRO_PERFIL_MENSAL</p></figcaption></figure>

Observe que o editor exibido mostrará uma guia JSON, mas também uma guia Plot and Table. A modificação dos dados na tabela atualizará automaticamente os dados no JSON, conforme mostrado:\\

<figure><img src="/files/G9wWknSfgE6eiosOBIuV" alt=""><figcaption><p>Observe que os valores foram editados em um editor de planilhas.</p></figcaption></figure>

Essas alterações atualizam automaticamente o JSON:

<figure><img src="/files/nnWKxf0PKdmD7IbZB6x0" alt=""><figcaption><p>Os dados são atualizados automaticamente na seção JSON</p></figcaption></figure>

##


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/portugues/nocoes-basicas-de-modelagem/parameters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
