### **Soluzione del Problema**

---

#### **1. Area e Centro di Massa della Base**
La base del serbatoio è la regione \( D \) nel piano \( xy \) definita da:
\[
D: \quad 0 \leq x \leq 1, \quad x^2 \leq y \leq 1.
\]

##### **Area \( A \) della base**
\[
A = \iint_D dA = \int_{x=0}^1 \int_{y=x^2}^1 dy\,dx = \int_{0}^1 (1 - x^2)\,dx = \left[ x - \frac{x^3}{3} \right]_0^1 = 1 - \frac{1}{3} = \frac{2}{3}.
\]

##### **Centro di Massa \( (\bar{x}, \bar{y}) \)**
Con densità uniforme, il centro di massa coincide con il **centroide** della regione \( D \).

- **Momento rispetto a \( y \) (asse verticale):**
  \[
  M_y = \iint_D x\,dA = \int_{0}^1 \int_{x^2}^1 x\,dy\,dx = \int_{0}^1 x(1 - x^2)\,dx = \left[ \frac{x^2}{2} - \frac{x^4}{4} \right]_0^1 = \frac{1}{2} - \frac{1}{4} = \frac{1}{4}.
  \]
  \[
  \bar{x} = \frac{M_y}{A} = \frac{1/4}{2/3} = \frac{3}{8}.
  \]

- **Momento rispetto a \( x \) (asse orizzontale):**
  \[
  M_x = \iint_D y\,dA = \int_{0}^1 \int_{x^2}^1 y\,dy\,dx = \int_{0}^1 \left[ \frac{y^2}{2} \right]_{x^2}^1 dx = \int_{0}^1 \left( \frac{1}{2} - \frac{x^4}{2} \right) dx = \left[ \frac{x}{2} - \frac{x^5}{10} \right]_0^1 = \frac{1}{2} - \frac{1}{10} = \frac{2}{5}.
  \]
  \[
  \bar{y} = \frac{M_x}{A} = \frac{2/5}{2/3} = \frac{3}{5}.
  \]

**Risultato:**
\[
\boxed{\text{Area} = \frac{2}{3}, \quad \text{Centro di massa} = \left( \frac{3}{8}, \frac{3}{5} \right).}
\]

---

#### **2. Capacità del Serbatoio (Volume)**
La capacità è il volume del solido definito da:
\[
0 \leq x \leq 1, \quad x^2 \leq y \leq 1, \quad 0 \leq z \leq 1 - y.
\]

##### **Calcolo con ordine \( dy\,dx \) (come definito \( D \))**
\[
V = \iint_D (1 - y)\,dA = \int_{0}^1 \int_{x^2}^1 (1 - y)\,dy\,dx.
\]
- Integrale interno:
  \[
  \int_{x^2}^1 (1 - y)\,dy = \left[ y - \frac{y^2}{2} \right]_{x^2}^1 = \left(1 - \frac{1}{2}\right) - \left(x^2 - \frac{x^4}{2}\right) = \frac{1}{2} - x^2 + \frac{x^4}{2}.
  \]
- Integrale esterno:
  \[
  V = \int_{0}^1 \left( \frac{1}{2} - x^2 + \frac{x^4}{2} \right) dx = \left[ \frac{x}{2} - \frac{x^3}{3} + \frac{x^5}{10} \right]_0^1 = \frac{1}{2} - \frac{1}{3} + \frac{1}{10} = \frac{4}{15}.
  \]

##### **Calcolo con ordine \( dx\,dy \)**
Per \( y \in [0,1] \), \( x \) varia da \( 0 \) a \( \sqrt{y} \):
\[
V = \int_{0}^1 \int_{0}^{\sqrt{y}} (1 - y)\,dx\,dy = \int_{0}^1 (1 - y)\sqrt{y}\,dy = \int_{0}^1 \left( y^{1/2} - y^{3/2} \right) dy.
\]
\[
V = \left[ \frac{2}{3} y^{3/2} - \frac{2}{5} y^{5/2} \right]_0^1 = \frac{2}{3} - \frac{2}{5} = \frac{4}{15}.
\]

**Risultato:**
\[
\boxed{\text{Capacità} = \frac{4}{15}.}
\]

---

#### **3. Portata su ciascuna parete**
Il campo di velocità è \( \mathbf{v} = (2x, y, 0) \). La portata uscente su una superficie \( S \) è:
\[
Q = \iint_S \mathbf{v} \cdot \mathbf{n}\,dS,
\]
dove \( \mathbf{n} \) è il **vettore normale unitario esterno**.

---

##### **a) Fondo (\( z = 0 \))**
- **Normale esterna:** \( \mathbf{n} = (0, 0, -1) \).
- **Prodotto scalare:** \( \mathbf{v} \cdot \mathbf{n} = 0 \).
- **Portata:** \( Q_{\text{fondo}} = 0 \).

---

##### **b) Parete \( x = 0 \)**
- **Normale esterna:** \( \mathbf{n} = (-1, 0, 0) \).
- **Prodotto scalare:** \( \mathbf{v} \cdot \mathbf{n} = -2x \). A \( x = 0 \), \( \mathbf{v} \cdot \mathbf{n} = 0 \).
- **Portata:** \( Q_{x=0} = 0 \).

---

##### **c) Tetto (\( z = 1 - y \))**
- **Parametrizzazione:** \( \mathbf{r}(x,y) = (x, y, 1 - y) \), con \( (x,y) \in D \).
- **Vettore normale (esterno):** \( \mathbf{n} = \frac{(0, 1, 1)}{\sqrt{2}} \).
- **Prodotto scalare:** \( \mathbf{v} \cdot \mathbf{n} = \frac{y}{\sqrt{2}} \).
- **Elemento di area:** \( dS = \sqrt{2}\,dx\,dy \).
- **Portata:**
  \[
  Q_{\text{tetto}} = \iint_D \frac{y}{\sqrt{2}} \cdot \sqrt{2}\,dx\,dy = \iint_D y\,dx\,dy = M_x = \frac{2}{5}.
  \]

---

##### **d) Parete \( y = x^2 \)**
- **Parametrizzazione:** \( \mathbf{r}(x,z) = (x, x^2, z) \), con \( 0 \leq x \leq 1 \), \( 0 \leq z \leq 1 - x^2 \).
- **Vettore normale (esterno):** \( \mathbf{n} = \frac{(2x, -1, 0)}{\sqrt{4x^2 + 1}} \).
- **Prodotto scalare:** \( \mathbf{v} \cdot \mathbf{n} = \frac{4x^2 - x^2}{\sqrt{4x^2 + 1}} = \frac{3x^2}{\sqrt{4x^2 + 1}} \).
- **Elemento di area:** \( dS = \sqrt{4x^2 + 1}\,dx\,dz \).
- **Portata:**
  \[
  Q_{y=x^2} = \int_{0}^1 \int_{0}^{1 - x^2} 3x^2\,dz\,dx = \int_{0}^1 3x^2(1 - x^2)\,dx = 3\left[ \frac{x^3}{3} - \frac{x^5}{5} \right]_0^1 = 3\left( \frac{1}{3} - \frac{1}{5} \right) = \frac{2}{5}.
  \]

**Risultato:**
\[
\boxed{
\begin{aligned}
&\text{Fondo (z=0):} & 0 \\
&\text{Parete x=0:} & 0 \\
&\text{Tetto (z=1−y):} & \frac{2}{5} \\
&\text{Parete y=x²:} & \frac{2}{5}
\end{aligned}
}
\]

---

#### **4. Controllo del Bilancio con \( \nabla \cdot \mathbf{v} \)**
Il **teorema della divergenza** afferma:
\[
\iint_{\partial V} \mathbf{v} \cdot \mathbf{n}\,dS = \iiint_V (\nabla \cdot \mathbf{v})\,dV.
\]

- **Divergenza di \( \mathbf{v} \):**
  \[
  \nabla \cdot \mathbf{v} = \frac{\partial}{\partial x}(2x) + \frac{\partial}{\partial y}(y) + \frac{\partial}{\partial z}(0) = 2 + 1 + 0 = 3.
  \]

- **Integrale di volume:**
  \[
  \iiint_V 3\,dV = 3 \cdot V = 3 \cdot \frac{4}{15} = \frac{4}{5}.
  \]

- **Portata totale uscente:**
  \[
  Q_{\text{totale}} = 0 + 0 + \frac{2}{5} + \frac{2}{5} = \frac{4}{5}.
  \]

**Conclusione:** Il bilancio è soddisfatto, poiché \( Q_{\text{totale}} = \iiint_V (\nabla \cdot \mathbf{v})\,dV \).

\[
\boxed{\text{Bilancio verificato: } \frac{4}{5} = \frac{4}{5}.}
\]
