An adiabatic and reversible process is always isoentropic. However, the opposite is not unconditionally true. It is perfectly possible to have irreversible isoentropic processes. Isoentropic, in such a case, refers to the entropy of the system. Of course, such transformations are not adiabatic, i.e. some heat must be exchanged with the surrounding universe. This exchange of heat does not contradict the condition that the system is closed, which refers to the absence of mass exchanges.
The key point to clarify how processes of this kind may be set up is to remember that a system may change its entropy in two ways:
- by exchanging heat $q$ with surroundings at temperature $T$, ($q$ is positive if the heat goes into the system, negative if it is extracted from the system):
$$
\Delta S_{exch} = q/T;
$$
- by an internal generation of entropy, $\Delta_{gen}$, due to internal irreversible processes.
The total change of entropy of the system is
$$
\Delta S = \Delta S_{exch} + \Delta S_{gen}.
$$
While $\Delta S_{gen} \geq 0$, $\Delta S_{exch}$ may be positive or negative.
In the latter case ($\Delta S_{exch} \lt 0$), it may compensate exactly a positive $\Delta S_{gen}$, to make the process isoentropic ($\Delta S = 0$), but still irreversible since the universe entropy is increased by the positive amount $-\Delta S_{exch}$.
As a concrete example of a process of this kind, one can think of a rigid and closed vessel, able to exchange heat with the surroundings, containing two equal volumes of two different perfect gases separated by a wall. By removal of the internal wall, there will be a production of entropy $\Delta S_{mix}$, (entropy of mixing). However, the total entropy of the system may be kept constant if heat equal to $T \Delta S_{mix}$ is transferred to surroundings at temperature $T$. The total transformation is irreversible but isoentropic for the gas in the vessel. Of course, the internal energy of the system decreases in such a process, and the equilibrium condition will correspond to the minimum of the internal energy at constant total entropy of the system.
At the same time, the entropy of the universe will be increased by $\Delta S_{mix}$.