Professional Documents
Culture Documents
Tutorial
Una coleccin de modelos independientes para
ensear el software WEAP
March 2015
WEAP
Water Evaluation And Planning System
Tutorial Modules
WEAP en una Hora .................................................................................................................1
Herramientas Basicas ............................................................................................................31
Escenarios ...............................................................................................................................41
Datos, Resultados y Formato ...............................................................................................63
Conectando Recursos y Demandas.....................................................................................85
Refinando el Anlisis de Demanda.....................................................................................92
Hidrologa.............................................................................................................................117
Refinando el Suministro .....................................................................................................138
Embalses y Generacin Hidroelctrica.............................................................................156
Calidad del Agua .................................................................................................................171
Anlisis Financiero ..............................................................................................................198
The WEAP/ QUAL2K Interface .........................................................................................211
Linking WEAP to MODFLOW ..........................................................................................220
Linking WEAP to LEAP .....................................................................................................253
WEAP
Water Evaluation And Planning System
WEAP en una
Hora
Un tutorial para
Crear una Nueva rea de Estudio ....................................................................................... 2
Definiendo Parametros Generales ........................................................................................ 9
Ingresando Elementos al Esquema ..................................................................................... 12
Los Primeros Resultados ...................................................................................................... 27
March 2015
WEAP en una Hora 2
Nota: Los incrementos de tiempo deben ser escogidos para reflejar el nivel de
precisin de los datos que se tengan.
Como en otros programas, guardar su trabaja con frecuencia es una buena idea.
Para cada rea, WEAP gestiona todos los archivos pertenecientes para usted.
Cuando guarda una nueva rea, WEAP guarda automticamente los archivos
relacionados. Los archivos se guardan en la carpeta de instalacin del programa
WEAP. Puede gestionar las reas usando el men rea/Administrador de reas.
Presiona Finalizar.
Haga clic en el botn derecho sobre el nodo de Big City. Aparecern unas
opciones. Vaya a Editar Datos.
Vaya a la carpeta Taso Anual de Uso del Agua. Bajo el numero 2000 haga
clic en la celda en blanco y anote 300.
Esto permite computar todo el modelo. Cuando est listo, una tabla de
resultados aparecer en pantalla.
Nota: si no tiene los mismos resultados, vuelva atrs y revise que todos los
datos estn correctos. Si al correr los resultados el programa le muestra una
ventana con advertencia, lea cuidadosamente el mensaje pues en l puede
estar indicado el lugar del error.
WEAP
Water Evaluation And Planning System
Herramientas
Basicas
Un tutorial para
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccin Regresar al
Version Previa y escoja la versin llamada Starting Point for Basic Tools
module.
Mes Valor
Enero 0.9
Febrero 0.9
Marzo 1.0
Abril 1.0
Mayo 1.0
Junio 1.1
Julio 1.15
Agosto 1.15
Setiembre 1.0
Octubre 1.0
Noviembre 0.9
Diciembre 0.9
Dentro de este, haga clic sobre la carpeta ramales en la barra hacia la parte
inferior de la pantalla.
Note que ahora no hay demandas no cumplidas en diciembre para Big City
porque la fraccin para demanda en diciembre decreci de 8.5% (derivado e
la cantidad de das en el mes) a 7.5% (basada en la expresin utilizando en la
supuesta clave Domestic Variation). Ud. puede revisar valores numricos
calculados en Variacin Mensual en la expresin matemtica seleccionando
Tabla en la entrada de datos en la parte inferior de la ventana.
Presione Terminar.
WEAP
Water Evaluation And Planning System
Escenarios
Un tutorial para
Preparando el Terreno Para los Escenarios ....................................................................... 42
Creando Escenarios de Referencia ..................................................................................... 44
Creando y Corriendo Escenarios ........................................................................................ 50
Usando el Metodo WATER YEAR ................................................................................. 53
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting Point for Scenarios'
module.
Presione Cerrar.
Datos:
2000 3500
2005 3300
2010 3200
2015 3150
Crecimiento despus de ltimo ao: 0%
Note que el primer punto, para el ao 2000, deber estar ya listado porque ya
ha sido ingresado cuando Unit Irrigation Water Needs fue creado.
Presione Finalizar.
que el color del texto en los campos cambiara de color a rojo. Esto ocurre
para cualquier valor que cambia o se desvi del escenario de referencia (debe
clic en otro lugar y lego volver para ver la roja).
Note que hay mayor demanda de agua para la ciudad en el escenario Higher
Population Growth que en el de referencia.
Que cambios nota en este grfico para Extended Dry Climate Sequence?
WEAP
Water Evaluation And Planning System
Datos, Resultados
y Formato
Un tutorial para
Intercambiando Datos .......................................................................................................... 64
Importando Serias de Tiempo ............................................................................................. 68
Trabajando con los Resultados............................................................................................ 72
FORMATING / Defniendo el formato ............................................................................... 77
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting point for all modules
after Scenarios module.
Intercambiando Datos
1. Exportar Datos a Excel
Se puede exportar todo el modelo a Excel.
En el ambiente Datos seleccionne Editar y luego Exportar
Expresiones a Excel.
Para efectos del ejercicio solo exporte el rbol y todas las ramificaciones y
todas las variables de Cuentas Corrientes (no exporte ninguno de los
otros escenarios). Exporte a una nueva hoja de trabajo workbook.
Mantenga todas las opciones restantes.
Presione OK.
3. Modificando Datos
En la hoja Excel que se cre, puede ser conveniente ocultar varias columnas
que no se estn usando de manera de ver valores de variables y los Sitios de
Demanda a los que corresponden.
Haga los siguientes cambios en la columna amarilla.
Big City Consumo 5% (fue 15 originalmente)
Agriculture Consumo 5% (fue 90 originalmente)
Presione Finalizar.
Seleccione
Medidor de
Cuadal
(guage) y
Return Flow
Node 2 desde
la lista que
aparece.
Finalmente
seleccione
los aos 2000 al 2003 para ser representados en el grfico. Puede ser que debe
haga clic de nueva en su seleccin de Nodos y Tramos para ver el mismo
grfico y cambiar la informacin a formato de columnas en paralelo, en el
barro a la derecha.
FORMATING / Definiendo el
Formato
13. Cambiando la Apariencia del Fondo de un Capa Vector
En Esquema, cambie el color de Big City presionando el botn derecho
del mouse sobre Cities en el recuadro de capas justo debajo del recuadro
de elementos. Seleccione Editar.
Ud. puede mover las capas hacia arriba o hacia abajo de su posicin relativa.
Para ello, presione el botn derecho del mouse y seleccione Mover hacia
arriba o Mover hacia abajo.
Presione Open.
Presione Aceptar. Si necesita, use las opciones para mover las capas abajo
y arriba por que el modelo verse como el siguiente:
WEAP
Water Evaluation And Planning System
Conectando
Recursos y
Demandas
Un tutorial para
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting point for all modules
after Scenarios module.
- Como el uso relativa del agua de Big City Groundwater y del ro principal (Main
River) evoluciona a la demanda de Big City?
Para ver resultados grficos para Big City, seleccione Demanda\ Suministra
Entregado, usando el men variable primaria. Luego escija "Todo Fuente"
dentro de las opciones al lado derecho de la pantella. Luego, seleccione Big
City como el sitio de demanda, para verlo, use el men abajo el grfico y
directamente debajo de la variable primaria field.
Haga clic en Total Anual y en el barro a la derecha, cambie el grafico a
columnas (Barra) y ve como apilados.
La recarga de los aguas subterraneos y sus interacciones con las lluvias y las
aguas superficiales pueden ser modelados en WEAP. Ver la seccin de
Hidrologia para mas detalles.
Se puede modelar otros recursos de agua usando el element Otras Fuentes en
el ambiente Esquema. Por ejemplo, este objecto puede ser utilizando para
simular una planta de desalacin o transferencias entre cuencas.
WEAP
Water Evaluation And Planning System
Refinando el
Anlisis de
Demanda
Un tutorial para
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting point for all modules
after Scenarios module.
Demanda desagregada
Crear un nuevo sitio de demanda.
En Cuentas Corrientes, cree un Sitio de Demanda nueva ro abajo de Big
City para simular la demanda rural. Denomine este nodo Rural y dele una
Prioridad de la Demanda = 1. Proporcione una Conduccin desde Main
River posicionados ro abajo de los retornos de flujos de Big City y
Agriculture. La Preferencia del Suministro debe ser fijada en 1. Proporcione
tambin un Flujo del Retorno para Rural que es posicionado an ms ro
abajo.
Su rea debiera verse as:
Compartir (partes) vs. Saturacin: a pesar de que ambos tipos de porcentajes son
tratadas matemticamente el mismo por WEAP, son conceptualmente diferentes.
En un nivel dado del rbol, las partes siempre deben sumar hasta el 100%.
Tambin permiten el uso de la funcin Remainder. Saturacin indica la tasa
de penetracin de un dispositivo en particular y es independiente de la tasa de
penetracin de otros dispositivos (por ejemplo, las tasas de saturacin para todas
las sub-ramas de una rama determinada no tienen que sumar a 100).
Para ver los resultados de la Demanda de Agua para todas las sub-ramas
Rurales (por ejemplo, single family houses\showers; apartments), en el
campo de levels seleccione 2 (justo encima del centro del grfico).
La variacin de la demanda rural se debe al hecho de que WEAP asume una demanda
diaria constante por da (sin demanda mensual especificado por el usuario), y por lo
los meses que tienen menos das (como febrero) tienen una menor demanda de los
meses que tienen ms das (como enero).
El punto de extraccin Rural es aguas abajo del punto de retorno para Big City
and Agriculture, y por eso hay un volumen adicional de agua disponible en el
ro. Este flujo de retorno puede cubrir fcilmente el ms pequeo demanda del
sitio Rural.
[Dice que: Si quiere crear un nuevo rama bajo Washing, perder los datos
de uso de agua ya introducidos. (Datos de uso de agua esta introducidos
solamente al nivel inferior de rbol de demanda). Quiere suprimir estos datos
y crear una nueva rama bajo Washing?]
7. Modelando Reuso
Otra estrategia de la conservacin del agua que se podra estudiar con
escenarios es reuso del agua.
Cree un escenario nuevo heredado del Reference y denomnelo Big City
Reuse. Cercirese est en este escenario y el clic en la rama Big City Haga
clic en Prdida y Reuso y haga clic la carpeta Tasa de Reuso (%).
8. Modelando perdidas
Reedite el modelo para tener en cuenta el hecho que hay un 20% de tasa de
prdida en la red de Big City.
En la carpeta Tasa de Perdida, haga este cambio para las Cuentas
Corrientes para que se llevara con el escenario Reference, y como
resultado de la caracterstica de herencia, a travs de todos escenarios.
Las prdidas del agua pueden ocurrir en los enlaces de transmisin, en el Sitio
de Demanda o en Flujos de Retorno. Las prdidas de transmisin afectaran el
suministro al Sitio de Demanda. Las prdidas en el Sitio de Demanda afectaran
los Requerimientos de Suministro del Sitio de Demanda. Las prdidas en los
Flujos de Retorno solo afectaran los flujos que devuelve al ro.
WEAP
Water Evaluation And Planning System
Hidrologa
Un tutorial para
Modelando Captaciones: modelo aguas lluvias y " Runoff" ................................................. 118
Modelando Captaciones: modelo de humedad del suelol....................................................... 123
Simulando interaccion superficie y aguas subterraneas ........................................................ 130
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting point for all modules
after Scenarios module.
Presione Aceptar.
Tambin se puede hacer en la ventana la carpeta Avanzado de Main River
Headflow:
Mes Valor
Enero 0.9
Febrero 0.9
Marzo 1.0
Abril 1.1
Mayo 1.4
Junio 1.1
Julio 1.1
Agosto 1.1
Setiembre 0.9
Octubre 0.9
Noviembre 0.9
Diciembre 0.9
Note que si usted haba hecho clic s cuando pregunt si reas irrigadas
deban ser incluidas en esta Unidad Hidrolgica (en la ventana de
Informacin General al crear la Unidad Hidrolgica), otra carpeta la
Irrigacin habra aparecido bajo la Unidad Hidrolgica en el ambiente
Datos. Este carpeta tendra dos etiquetas bajo lo: (1) Irrig, donde usted
hace la entrada o un 0 para no irrigado, o un 1 para irrigado para una
clase particular de la tierra; y (2) Irrig la fraccin donde usted especificara
la fraccin de agua de irrigacin suministr al rea que est disponible para el
evapotranspiracin.
Este conduccin permite el suministro del rea regado con agua del rio cuando
la lluvia es insuficiente.
Z2 Inicial 20%
Capacidad de Agua del Suelo 900 mm
Capacidad de Agua Profunda 35,000 mm
Conductividad Profunda 240 mm/month
Para Kc (Coeficiente de Cultivo), use los mismo valores de Kc para Main
River Headflow Unidad Hidrologica en el ejercicio anterior. Puede
simplemente copiar y pegar esa expresin.
Junio 27
Julio 29
Agosto 29
Setiembre 27
Octubre 22
Noviembre 16
Diciembre 11
Precipitacin Utilice los mismos valores entrados para Main
River Headflow en el ejercicio anterior.
Usted puede mirar tambin tales parmetros como Humedad Relativa del
Suelo 1(%), o Fraccin de flujo retorno de riego hacia AS (SMM).
WEAP
Water Evaluation And Planning System
Refinando el
Suministro
Un tutorial para
Cambiando las prioridades de suminstro ............................................................................... 139
Modelando reservas ............................................................................................................... 143
Agregando requerimientos de caudal o flujos ........................................................................ 151
March 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting point for all modules
after Scenarios module.
Suministro de Preferencia:
2 para conduccin de Main River,
1 para la conduccin de Big City
Suministro de Preferencia:
1 para conduccin de Main River,
1 para la conduccin de Big City
Modelando Embalses
4. Creer una Reserva y entrar los datos respectivos
Primero cree un nuevo escenario heredado de Reference y nombrelo
Reservoir Added. Entonces agregue al objeto Embalse en Main River
ro arriba de Big City, y llmelo Main River Reservoir asegrese de
desbloquear la opcin donde pregunta si es Activo en Cuentas
Corrientes.
Deje Demand Priority en 99 (default).
WEAP
Water Evaluation And Planning System
Embalses y
Generacin
Hidroelctrica
UN TUTORIAL EN
Modelando Embalses.............................................................................................................. 157
Agregando Generacin Hidroelctrica................................................................................... 162
Modelando Centrales de Pasada ............................................................................................ 165
marzo 2015
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting point for all modules
after Scenarios module.
Modelando Embalses
1. Creando un Embalse
Cree un Embalses en el lago localizado aguas arriba de Withdrawal Node 1
para Big City. Llmelo Big City Reservoir.
Prioridad de la Demanda 99 (el valor por defecto)
The Buffer Coefficient provides a way to regulate water releases when the water
level in the reservoir is within the buffer zone (see figure in the information box of
the previous step). The downstream demand is multiplied by the Buffer Coefficient
to obtain actual water release. Thus a Buffer Coefficient of 1 means that as much
water is released as is needed to cover downstream demand (in other terms, the
buffer zone is a mere extension of the conservation zone). A Buffer Coefficient of 0
means no water is released. This is why lower Demand Site Coverage is observed
for results in the Buffer Coefficient Changes escenario above.
Agregando Generacin
Hidroelctrica
5. Entendiendo la manera en que WEAP modela las Produccin
de Energa
WEAP puede modelar Produccin de Energa de tres maneras diferentes: a
travs de embalses en lnea, a travs de embalses fuera de lnea y a travs de
centrales hidroelctricas de paso.
Consulte el men Ayuda para ms informacin sobre cada categora.
Look at the Hydropower Calculations help topic for more information about
how WEAP computes power production.
Entiende por qu los niveles de produccin entre Mayo y Junio son tan
similares, a pesar de que los caudales en Main River y las caudales efluentes
aguas abajo es mucho ms grande en Junio?
Para confirmar esto, mire los resultados de Caudal en el tramo por
debajo de Main River Caudal de Cabecera.
En el paso anterior, entramos 80m3/s por el Mximo Caudal de Turbina. Por eso, no
se puede procesar ms caudales que 80m3/s: significa que a pesar de que hay una
descarga ms alta en junio, la cantidad excedente fluye rio abajo sin pasar por la
turbina. La energa hidroelctrica en junio seria el mismo para mayo pero la
elevacin de almacenamiento en Big City Reservoir fue inferior a finales de abril de
lo que era a finales de mayo (mirar los resultados de Elevacin de Almacenamiento
del Embalse estos nmeros representan el estatus en el final de cada mes
indicado). Este efector fue compensado ligeramente porque mayo tiene 31 das
para producir energa mientras que junio tiene 30 das. Pero todava junio llego a
tener poco ms alta produccin de energa.
La produccin de energa hidroelctrica de embalses locales puede ser modelada
de la misma manera.
Un embalse puede almacenar agua durante flujos altos y sultelo durante tiempos
con caudales pequeos, lo que tendr un efecto suavizante. Los Centrales
Hidroelctricas de Paso, sin embargo, procesar cualquier agua fluye en el rio en
cada momento. Por lo tanto, no afecta la forma de la curva de caudal.
marzo 2015
Calidad del Agua 172
Note:
Para comenzar esta leccin vaya al men principal y seleccione Regresar a
Versin Previa y escoja la versin llamada Starting Point for all modules
after Scenarios module.
En la pantalla Ancho del nivel del caudal, el para el tramo Por debajo de
Main River Caudal de Cabecera, use el Asistente Caudal-Nivel de Agua-
Acho, hacienda clic en la flecha que baja.
Humidity 65%
Nota: usted puede ingresar estos datos para el primer tramo del ro y dejar
los otros tramos vacos si es que quiere que estos valores apliquen para todos
los tramos.
Wind 1 m/s
Latitude 30
Considerando restricciones de
Calidad del Agua en un Sitio de
Demanda
6. Ingresando las Restricciones
Un sitio de demanda puede requerir que su suministro de agua cumpla con
ciertos criterios de calidad del agua.
Cree un nuevo escenario heredado del escenario de Reference y llmelo
Big City Water Quality Inflow Constraints. En el ambiente de Datos
(asegrese de que este en el nuevo escenario), seleccione la rama de Big City
en el rbol de datos, y haga clic en el botn de Calidad de Agua. Bajo la
pestaa BOD Afluente, ingrese la siguiente concentracin mxima de
BOD:
BOD afluente 2 mg/L
Seleccione Calidad del Agua del Rio (este grafico es ms fcil a ver si cambie
los colores a Mac en el barro a la derecho)
Cree otro enlace de flujos de retorno desde Big City a la WWTP. Mantenga
el enlace de flujos de retorno existente entre Big City y el ro. Tambin cree
en enlace de flujos de retorno entre la WWTP y el ro. Su modelo debera
verse similar a la figura de abajo:
Para los Flujos de Retorno desde Big City a la WWTP de Big City
establzcalo a un 100% para los aos 2001-2015 en el mismo escenario. En
el escenario Cuentas Corrientes, ingrese los flujos de retorno a 0%. A
pesar de que an no existe la Planta de Tratamiento de Aguas Residuales,
WEAP dara errores si los porcentajes no suman a 100% entre la
infraestructura existente y no existente (los dos enlaces de flujos de retorno
de Big City).
You also have the possibility to set removal rates in the various return flows. This
would be useful if, for example, a given pollutant is decomposed by bacteria in the
sewer system. These data can be entered under the Water Quality\Pollutant
Decrease in Return Flow branches for the appropriate return flows (see figure
Si solo una parte de los aguas residuales son tratadas de la Planta de Tratamiento,
hay dos posibilidades de modelndolo.
Se puede limitar la capacidad diaria a cualquier cantidad realmente pueden ser
tratados. En este caso, se descargara los aguas residuales en exceso de limite sin
tratamiento y la proporcin de aguas residuales sin tratar no es constante, porque
depende del caudal total.
Otra solucin ser crear un flujo de retorno adicional que va desde el sitio de
demanda directamente al rio, pasando por alto de Planta de Tratamiento. En este
caso, se puede enviar una porcin constante en by-pass de la Planta. Se realiza con
el establecimiento de las porciones de enrutamientos de los flujos de retornos.
Tambin, es posible combinar los dos mtodos.
Usando el men desplegable abajo del grfico, selecciones los aos 2000 y
2001 para ver. Seleccione Por debajo de Big City WWTP Return (es el
flujo de retorno desde la WWTP, por lo que va a estar mirando a la calidad
del agua en el ro justo abajo del influjo desde la WWTP) como el tramo en
Main River para ver. Seleccione BOD como el componente de calidad de
agua desde el men desplegable arriba del grfico, y desmarque el botn
Monthly Average a la extrema derecha. Su pantalla debera verse como la
que se presenta a continuacin:
WEAP tambin puede mostrar los valores de calidad del agua a lo largo del
ro.
Desde el men al fondo de la pantalla, elija Todo Main River Nodos y
Tramos y haga marque Representa la verdadera distancia relativa?
Esto mostrara todo los nodos y tramos a lo largo del eje-X, con su
distanciamiento proporcional a su distancia aguas abajo (las distancias se
En este tipo de grfico, se representan los caudales efluentes del rea con valores
negativos y los caudales afluentes con valores positivos. Tenga en cuenta tambin
que la categora de Perdida en tratamiento representa el flujo consumo
entramos una tasa de consumo del 5% en la vista de datos de la planta de
tratamiento.
Anlisis Financiero
UN TUTORIAL EN
Preparando el Modelo de Costos e Ingresos ........................................................................... 199
Modelando Costos .................................................................................................................. 201
Modelando Ingresos ............................................................................................................... 209
marzo 2015
Anlisis Financiero 199
Note:
For this module you will need to have completed the previous modules (WEAP in
One Hour, Basic Tools, and Escenarios) or have a fair knowledge of WEAP (data
structure, Key Assumptions, Expression Builder, creating escenarios).
Para comenzar esta leccin vaya al men principal y seleccione Regresar a Versin
Previa y escoja la versin llamada Starting point for all modules after Scenarios
module.
Modelando Costos
4. Ingrese Datos de Costo para el Sitio de Demanda
Para el sitio de demanda Big City, ingrese la siguiente informacin (en
Cuentas Corrientes) en la rama Sitios de Demanda del rbol de datos del
ambiente de Datos. Haga clic en el botn Costo e ingrese bajo la
pestaa Costo de Capital:
Costo de Capital es un prstamo de 120M$, en el ao 2000, por un periodo de 15
aos, con tasa de inters del 5%
Use el Editor de ecuaciones para seleccionar la funcin ya predefinida
LoanPayment. Arrastre esta funcin dentro de la ventana de la
expresin e ingrese ah los parmetros 120 000 000, 2000, 15, 5% dentro
del parntesis. La expresin debera verse as:
LoanPayment(120000000,2000,15, 5%)
LoanPayment(300000000,1989,20,6%)
Mientras que el dlar real son los valores reales en dlares, valores descontados en
dlares han sido devueltos a su valor presente usando la tasa de descuento.
Cuando los costos se incurren ms lejos en el futuro, el valor actual es menos.
producen).
Modelando Ingresos
8. Ingrese Datos de Ingresos en el Sitio de Demanda
En el ambiente Datas en la pantalla de Costo para el Sitio de Demanda Big
City, ingrese los siguientes datos, que pueden, por ejemplo, corresponder al
precio al que se vende el agua.
Variable Benefits 0.26$/m3
El Valor Presente Neto de los costos puede ser comparado al valor de los ingresos
para obtener una idea de la viabilidad econmica del sistema. Si el Valor Presente
Neto de los costos supera el Valor Presente Neto de los ingresos, el sistema
devuelve un beneficio inferior al promedio de los proyectos (segn la decisin de
la tasa de descuento). Si el Valor Presente Neto de los ingresos supera al valor de
los costos, el sistema est generando un beneficio mayor que el promedio de
proyectos.
The WEAP/
QUAL2K Interface
A TUTORIAL ON
Linking to QUAL2K .............................................................................................................. 212
Running Escenarios ............................................................................................................... 218
March 2015
Note:
For this module you will need to have completed the previous modules
(WEAP in One Hour, Basic Tools, Escenarios, and Water Quality) or
have a fair knowledge of WEAP (data structure, Key Assumptions,
Expression Builder, creating escenarios). To begin this module, go to the
Main Menu, select Revert to Version and choose the version named
Answer Key for Water Quality Module.
Linking to QUAL2K
1. Using QUAL2K for Water Quality Modeling in WEAP
This module uses the final result from the previous Water Quality
module as a starting point. Open the WEAP tutorial (by selecting Area
| Open | Tutorial from the menu), then selecting Area | Revert to
Version | Answer Key for "Water Quality" module from the menu.
Once the file is ready, change the water quality constituents to point to
QUAL2K.
The QUAL2K file must initially be developed and edited outside of WEAP. WEAP
will then modify some of the values, and extract values from QUAL2K after it is
run. To view or edit the QUAL2K file, clic on the View button next to the
QUAL2K Data File (.q2k) drop-down on the Water Quality Constituents dialog.
For marking reach distances, QUAL2K assigns the tail of the river a
distance of 0, and distance increases upstream. WEAP can measure reach
distances either downstream or upstream, but in the previous module
distance was measured downstream, opposite the convention for
QUAL2K, so the reach distance markers must be changed when linking
to QUAL2K.
To set the reach distance markers:
Go to Data View
Running Escenarios
6. Run Escenarios
Run the escenario by going to Results View and answering Yes to the
dialog asking whether to recalculate.
Note that when using QUAL2K, running escenarios can take a long time. Consider
reducing the number of escenarios that you calculate at any time.
QUAL2K will not run for months in which streamflow is zero. If this
situation occurs in one or more escenarios, add a (small) minimum flow
requirement on reaches for which QUAL2K is used.
7. Compare Results
When you have finished running your selected escenarios, compare the results with
the results from the previous module. They should be similar, but not identical,
because the built-in water quality calculations in WEAP make slightly different
assumptions and use different approximations than QUAL2K.
Linking WEAP to
MODFLOW
A TUTORIAL ON
Linking to MODFLOW ........................................................................................................ 221
Running MODFLOW and Viewing Results ........................................................................ 233
Scenario: Increased Population .............................................................................................. 235
Scenario: Irrigation ................................................................................................................ 237
Scenario: Artificial Recharge ................................................................................................. 243
March 2015
Linking WEAP to MODFLOW 221
Note:
For this module you will need to have completed the previous
modules (WEAP in One Hour, Basic Tools, and Scenarios) or
have a fair knowledge of WEAP (data structure, Key
Assumptions, Expression Builder, creating scenarios). To begin
this module, go to the Main Menu, select Revert to Version and
choose the version named Starting Point for 'Linking WEAP to
MODFLOW module'.
Linking to MODFLOW
1. Using MODFLOW for Groundwater Modeling in WEAP
For situations where the built-in WEAP groundwater model is not sufficiently
complex, there is the option to link a WEAP model to a MODFLOW model.
MODFLOW is a three-dimensional finite-difference groundwater model
created by the U.S. Geological Survey (USGS). When properly linked, data
and results flow back and forth between WEAP and MODFLOW for each
calculation timestep. With this tight coupling between the models, it is
possible to study how changes in local groundwater levels affect the overall
system (e.g., groundwater-stream interactions, pumping problems due to
drawdown, lateral groundwater recharge) and vice versa (e.g., infiltration
and abstraction). However, be advised that building and calibrating a
MODFLOW model is not a simple task. The version of MODFLOW that
WEAP is designed to link to is MODFLOW 2000.
The sample area used for this module differs from those in
previous modules. It includes a city whose supply comes entirely
from groundwater, rainfed agriculture, a spring-fed river that
receives surface runoff from the catchment and is hydraulically
connected to groundwater. The catchment includes forests and
grassland, in addition to agriculture and the city.
The name file lists the other files that contain data for the various
aspects of the MODFLOW model, such as recharge, pumping and
river interactions. These files are called "packages." Take a look at
some of the packages for this modelclick on the "View/Edit
Packages" button to and choose "MODFLOW Name file:
tutorial.mfn." You will see the list of files/packages. Click the
cancel button to close the name file and look at another package,
such as the "MODFLOW Discretization file: tutorial.dis." The
discretization file contains basic information about the model,
such as the number of layers, row and columns, and the width of
each row and column. As you can see in the screen above, WEAP
has read in this information already: 20 rows, 20 columns, 1 layer,
and 1000 meters width for both rows and columns.
Note that initially WEAP does not know how to link the
MODFLOW model to the WEAP model, as can be seen in the
Each active MODFLOW cell is linked to one and only one WEAP
groundwater node. (For a given row and column, every layer will
be linked to the same groundwater node.) The linkage is
established by a GIS shape file (.shp) that relates MODFLOW cells
(by row and column number) with WEAP groundwater nodes (by
name). The polygon shape file has one rectangular feature for
each MODFLOW cell (row, column) and must be loaded as a
background layer on the Schematic. For example, for a
MODFLOW model with 20 rows, 20 columns and 3 layers, there
would be 400 features in the shape file. The shape file's attribute
table file (.dbf) must have fields for row number, column number
and WEAP groundwater node name. Other optional fields are
described below. This shape file will also be used to display
MODFLOW results in WEAP.
To create this shape file, either use a GIS program such as ArcGIS,
or WEAP's built-in tool that can create a shape file corresponding
to a MODFLOW model as explained in the following section.
The File Name box contains the filename for the new shape file.
Either use the default filename ("MODFLOW Linkage.shp") or
enter another name. Shape files always have a .shp extension.
Click the Create button to create it.
After the shape file has been created, WEAP will display it and
allow you to customize its appearance on the schematic. As you
can see from the screen below, the new shape file is a 20x20 grid of
400 cells.
The associated attribute table has fields for row, column, and for
linking various WEAP elements to each cellGW, Catchment,
Land_Use, DemandSite and RiverReach. You will need to fill in
this table, specifying which cells are linked to which WEAP
elements. For example, the name of the WEAP groundwater node
(in the Tutorial, the node is named "Groundwater") must be
entered in the table in the column labeled GW for each cell that
corresponds to the WEAP groundwater node. For example, in
row 1, columns 6 through 17 correspond to the WEAP
groundwater node, so you would enter "Groundwater" in table
column GW for those cells.
You may edit this table in several different ways. To edit inside
WEAP, click the Edit button (shown above) and type the values
directly into the table. You can also edit the table in Microsoft
Excel (the attribute table has the extension .dbf, e.g., MODFLOW
Linkage.dbf) or in any GIS program, such as ArcGIS. If you do
have access to GIS software, this will be the easiest way to edit the
table, but it can be done in WEAP.
After customizing its appearance, click the OK button. WEAP will
add this layer to your Schematic and return you to the "Choose
shape file that has MODFLOW linkage information" window.
Rather than spending the time now to fill in all the information in
the attribute table, we will use an existing shape file with all this
information already filled in. On the "Choose shape file that has
MODFLOW linkage information" window, select "< Add existing
shape file as new map layer >" for the "Background Shape File
with MODFLOW Linkage Information." A dialog box will appear,
asking you to select the ArcView Shape File to use. Choose
Linkage.shp (in the Tutorial directory) and click Open.
Note that WEAP now reports the linkage shape file and how
many of the WEAP and MODFLOW items are linked together,
e.g., "1 groundwater nodes (1 are linked to MODFLOW cells)" and
"Active cells linked to WEAP groundwater node: All are linked."
Click Close to return to the WEAP Schematic.
"MODFLOW Linkage," choose "Set label to" and choose one of the
other fields, such as "LAND_CLASS." This will show you which
of the four land classes (Grassland, City, Forest, Farm) each cell
corresponds to. Choose the field "DEMANDSITE" to see from
which cells the Big City demand site will pump from. Choose the
field "GW_NODE" to see which MODFLOW cells are linked to the
WEAP groundwater node named "Groundwater." Finally, choose
the field "RIVERREACH" to see which cells are linked to the
WEAP river "Blue River."
You have now linked the WEAP model to the MODFLOW model.
Can you see the impact of pumping from the Big City Wellfield? (This view
exaggerates the variation in headclick the "Y=0" button to see a more
realistic view. However, it is usually better to turn off Y=0 in order to see the
differences clearly.)
Click on the Map tab to see the head values on the map, with a
graph below. When you click on a grid cell, its value over time
will be graphed below the map. Click on some of the cells at the
Big City Wellfield to see how they vary. There is a seasonal
fluctuation in cell head (higher in winter, lower in summer, due to
increased pumping in the summer and lower rainfall in the
summer), and an overall trend downward from 2000 to 2010. You
can click and drag the mouse over many cells and the graph will
update in real-time as you move the mouse. This is a good way to
get a quick understanding of how cells in different areas of the
model behave differently over time.
9. Create scenario
Change the expression for the Annual Activity Level for Big City
from "Growth(1%)" to "Growth(5%)"
but an effect, although smaller, can even be seen far away from the
wellfield, e.g., in Row 16, Column 6 (in the lower left corner of the
model).
Scenario: Irrigation
The crops on this Farm are currently rainfed, but there is not
enough rainfall in the summer to meet their evapotranspirative
demand. Look at the results for Catchments / ET shortfall:
Go to the Data View and change "Irrigated" to 1 for the Farm, and
"Irrigation Fraction" to 50 (50% irrigation efficiency). Make sure
that the Irrigation scenario is selected in the "Data for" dropdown
box.
What happens to crops yields, now that they receive all the water they need?
Look at the Catchment report for yields, comparing the yield across
scenarios.
Compare the pumping rates for the Farm and for Big City:
In this example, the water will come from outside the catchment
area and not vary seasonally.
So that WEAP can tell MODFLOW which cells will receive the
artificial recharge, we need to edit the linkage shape file. Double-
click on "MODFLOW Linkage", select the Table tab and click the
Edit button. Scroll down to find the artificial recharge cells:
column 6, rows 13, 14 and 15. For these three cells, type into the
field labeled DEMANDSITE the name of the artificial recharge
demand site: "Artificial Recharge."
To verify this new linkage information, set the label for the
MODFLOW Linkage layer to DEMANDSITE. You should see the
artificial recharge cells labeled, as well as those for Big City
Wellfield:
For Water Use, set the Annual Water Use Rate to 25 Million cubic
meters (the annual capacity of the injection wells) and the
Consumption to 0%.
Click on the branch for the other supply, and then enter 1 CMS for
the inflow.
Run the model and look at results for recharge and cell head.
Does the artificial recharge have much impact on groundwater levels at the
recharge site? Is there much of an impact closer to the Big City Wellfield or
irrigation? Can you think of another site for the artificial recharge that
would better alleviate the drawdown from pumping?
Linking WEAP to
LEAP
A TUTORIAL ON
March 2015
Note:
For this module you will need to have completed the previous
modules (WEAP in One Hour, Basic Tools, and Scenarios) or
have a fair knowledge of WEAP (data structure, Key
Assumptions, Expression Builder, creating scenarios). To begin
this module, go to the Main Menu, select Revert to Version and
choose the version named Starting Point for 'Linking WEAP to
LEAP module.
3. WEAP Model
Already we can see links between the water and energy systems in
this model. The reservoir and coal power plant utilize water to
generate electricity. On the other hand, the wastewater treatment
plant uses energy in its treatment process. Energy is also needed
for processes like pumping for transmission.
Switch to the Results view. Click the pull-down menu at the top
left, select Supply and Resources > Reservoir > Hydropower
Generation. This allows us to see the variation in hydropower
generated by the reservoir over time. Change the unit to Kilowatt-
Hour. Remember that you can change the chart type to a line or
bar graph by clicking the Chart Type button on the right hand
side of the window.
You can also view the monthly average or the annual total
hydropower generated by checking the corresponding box at the
top of the window. From these options, we can see that
hydropower generation peaks during the summer, and varies
from year to year.
Monthly Average:
Annual Total:
5. LEAP Model
Now we will open the energy modeling program, LEAP, to see the
current sources of energy for Big City. Open the WEAP-LEAP
Tutorial area and revert to version Starting point for WEAP-
LEAP Tutorial.
Open the Analysis view in LEAP, which can be found on the
left-hand side of the window. This is similar to the Data view in
WEAP. In the Scenario pull-down window toward the top,
make sure the REF: No WEAP Link scenario is selected.
In the Data tree under Transformation > Electricity >
Processes, there are three processes that generate electricity:
hydropower from the reservoir, the coal steam power plant, and
energy imports. If you select the Merit Order tab, you can see
that hydropower is dispatched first, followed by energy from coal.
Any remaining shortfalls are made up with imports, which is last
in the merit order.
The energy production capacities for these plants are under the
Exogenous Capacity tab.
Now we shall follow the same steps for WEAP. In WEAP, under
the Advanced menu, select Link to LEAP Energy Model. A
window just like the LEAP link manager should pop up. Check
the Link to LEAP box, and verify that the LEAP Area, scenarios
and timesteps are linked correctly. Close the window.
Click the Submit button at the top left corner of the Expression
Builder.
The WEAPValue function tells LEAP to look at data or results
calculated by WEAP. The graph in the Chart tab below the
expressions shows that the hydropower maximum availability in
2011 and 2014, as calculated by WEAP, is actually much lower
than 100%. This restricts the amount of electricity LEAP can
dispatch from hydropower. (Note: You will only see these values
in the chart if WEAP has already calculated its Hydro Gen from
WEAP scenario.)
In this initial version of the linked WEAP-LEAP modeling system, the flow of
calculations is not fully automatic. In models which have links in both
directions, the user is responsible for running the models several times until the
system converges, or recognizing the cases where the results diverge or oscillate
between two or more different states. We hope to automate this process in future
versions.
Note: Your results for this tutorial may not exactly match those shown here,
depending on how many times you iterate the calculations in LEAP and WEAP.
As we can see from the chart, there is much less hydropower and
much more coal steam in this scenario due to the restriction given
by WEAP.
In WEAP, under the Table tab of the Results view, the value for
January 2014 is also 6.55 MW.
Note: If LEAP has not yet calculated this scenario, you will not see
any results here.
This is the demand coverage for the coal power plant. The chart
shows that, in months where the coverage is below 100%, the
maximum availability will be less than 70%.
Once you have created the variable, enter data in the Electricity
Demand from WEAP scenario for the energy needed for
pumping and treatment to the City (1 kWH / cubic meter) and the
Coal Power Plant (0.2 kWH / cubic meter). Tip: just click on the
transmission link in the lower left map to jump to that branch in
the tree.
Once you have created Electricity per Cubic Meter, enter data in
the Electricity Demand from WEAP scenario: 0.1 kWH / cubic
meter. The default expression for the read-only result variable
Total Electricity is
Electricity per Cubic Meter[kWH] * PrevTSValue(Wastewater Treatment
Plant Total Inflow[m^3])
You will need to run calculations before you can see these results
in the Data View.