Local stress and pressure in an inhomogeneous system of spherical active Brownian particles

The stress of a fluid on a confining wall is given by the mechanical wall forces, independent of the nature of the fluid being passive or active. At thermal equilibrium, an equation of state exists and stress is likewise obtained from intrinsic bulk properties; even more, stress can be calculated locally. Comparable local descriptions for active systems require a particular consideration of active forces. Here, we derive expressions for the stress exerted on a local volume of a systems of spherical active Brownian particles (ABPs). Using the virial theorem, we obtain two identical stress expressions, a stress due to momentum flux across a hypothetical plane, and a bulk stress inside of the local volume. In the first case, we obtain an active contribution to momentum transport in analogy to momentum transport in an underdamped passive system, and we introduce an active momentum. In the second case, a generally valid expression for the swim stress is derived. By simulations, we demonstrate that the local bulk stress is identical to the wall stress of a confined system for both, non-interacting ABPs as well as ABPs with excluded-volume interactions. This underlines the existence of an equation of state for a system of spherical ABPs. Most importantly, our calculations demonstrated that active stress is not a wall (boundary) effect, but is caused by momentum transport. We demonstrate that the derived stress expression permits the calculation of the local stress in inhomogeneous systems of ABPs.


Introduction
The agents of active matter perpetually convert internal energy or energy from the environment into systematic translational motion and are, thus, usually far from thermal equilibrium [1][2][3][4][5] .Their motility gives rise to remarkable phenomena such as collective motion, activity-induced phase transitions [5][6][7][8][9][10][11][12][13][14][15][16][17] , or wall accumulation [18][19][20][21] .Activity is associated with the generation of active stresses, which are responsible for the persistent nonequilibrium state of a system [22][23][24] .Such stresses are particularly interesting, since there is no equilibrium counterpart and thus, they usually cannot be described by equilibrium thermodynamics.An expression for the active pressure in systems of active Brownian particles (ABPs), based on a generalization of the virial including the active force, has been introduced recently 22,23 .Subsequently, expressions for the active pressure have been derived in various ways for both, the overdamped dynamics of ABPs [25][26][27][28] as well as in presence of inertia 29,30 .
Mechanical stress/pressure as force per area can be defined even far from equilibrium.The fundamental question is then, how this mechanical pressure is related to nonequilibrium thermodynamics.As a step toward such a relation, the existence of an equation of state for systems of ABPs has been addressed 24,28,31 .Various simulation and theoretical studies confirm that indeed such a relation, including the active pressure, exists for spherical ABPs [22][23][24][25][31][32][33] . However for (anisotropic) active particles which experience a torque, pressure is in general not a state function anymore 28,34 .
A pressure equation of state implies equivalence of wall and local pressure at any point inside the homogeneous relevant volume.Exactly this identity has been questioned in Ref. 27.Typically, confined or periodic systems are considered and relations between wall forces, hence the wall pressure, and virial, including the active-force virial, are determined 22,23,25,28 , but no local (bulk) pressure is calculated.Aside from Ref. 27, local pressure and the existence of an equation of state has been addressed in Ref. 35.
In this article, we derive an instantaneous expression for the local stress (pressure) in a system of spherical active Brownian particles using the virial approach.Thereby, we follow the strategy of Ref. 36 for passive systems.A volume ∆V within a larger volume V is considered and an expression is derived for the pressure inside ∆V .Considering the equations of motions of the ABPs inside the volume ∆V , including inertia, we obtain the well-known virial expressions for the pressure of a passive system.In addition, however, we find activity contributions.On the one hand, we obtain a virial expression for the active stress (swim stress) of particles inside ∆V , which differs from the swim stress discussed so far, and, on the other hand, we find an original momentum-flux contribution of APBs to stress, which we denote as active momentum.The notation rests upon the similarity to the classical linear momentum of a passive particle.It is precisely this term, which distinguishes our studies from those of Ref. 27.In general, we agree with the arguments presented in Ref. 27, however, the momentum flux across a plane in the system, similar to the momentum flux by inertia, yields an extra contribution to the local stress which not considered in Ref. 27.In fact, in Ref. 35 an "active impulse, defined as the mean momentum a particle will receive on average from the substrate in the future", is introduce, resembling our instantaneous active momentum, but the meaning is different.By computer simulations of non-interacting ABPs and ABPs interacting by a Lennard-Jones potential, we demonstrate that the derived expressions for the wall and bulk stress are identical.This highlights the existence of a pressure equation state for spherical ABP systems 22,24,35 .Moreover, it opens up the possibility to calculate stresses locally, even in inhomogeneous systems, which we confirm by calculating the local stress in a phase separated system.

Model
We consider a system of N ABPs of diameter σ in a three-dimensional volume V .Their equations of motion, including the inertia contribution, are given by m r r r i + γ ṙ r r i (t) = γv 0 e e e i (t where r r r i , ṙ r r i , and F F F i (i = 1, . . ., N) denote the particle positions, velocities, and forces, respectively, m is the mass, γ the translational friction coefficient, and Γ Γ Γ i are Gaussian white-noise random forces, with the moments Here, T denotes the temperature, k B the Boltzmann constant, and α, β ∈ {x, y, z} the Cartesian coordinate directions.A particle i is propelled with constant velocity v 0 along its orientation vector e e e i .The latter changes in a diffusive manner according to ė e e i (t) = e e e i (t within the Ito interpretation of the multiplicative noise process 37 ; η η η i is a Gaussian and Markovian stochastic process, with the moments The damping factor γ R is related to the rotational diffusion coefficient, D R , via γ R = 2D R .Alternatively, the velocity equation of motion of an active Ornstein-Uhlenbeck particle can be considered 38,39 , where aside from the orientation also the magnitude of the propulsion velocity is changing.In any case, the correlation function for the active velocity v v v a i = v 0 e e e i is 25,38 The forces F F F i include contributions from (short-range) interactions with confining walls, F F F w i , as well as possible pair-wise ABP interactions, F F F i j , such that (the prime at the sum indicates that the index j = i is excluded)

Global stress in confined system
We examine now ABPs confined in a rectangle (2D) or cuboid (3D) with walls located at ±L α /2.The virial expression for the stress follows by multiplying the respective individual Cartesian equations of Eqs.(1) by r iα , which yields 25,40 where . . .denotes either a time or an ensemble average.Due to confinement, the left-hand side of Eq. ( 7) vanishes.With the definition of an external stress σ e αα as average total force exerted on a wall, where S iα = ±L α /2 denotes the location of the wall with which particle i interacts, Eq. ( 7) yields the equivalent internal stress with r r r i j = r r r i − r r r j , as sum over all particles of the confined systems.Hence, we denote this expression as global (wall) stress.Note that by definition σ e αα = σ i αα .The contribution with the active force is denoted as swim stress 22,25,41 V The pressure itself follows as p i/e = −(∑ α σ i/e αα )/3.Aside from the wall term with the forces F F F w i , the stress tensor ( 9) is identical with that derived in Ref. 25.The wall term captures the finite range of the wall force and vanishes in the limit of vanishing wall interaction range.

Local virial and local stress
In order to determine the local stress at the position r r r within the volume V , we consider a cuboidal subvolume ∆V = ∆L x × ∆L y × ∆L z centered around r r r, with the side lengths ∆L α (cf.Fig. 1).ABPs inside of ∆V interact with each other as well as ABPs outside.Moreover, ABPs enter and leave ∆V in the course of time.The internal stress follows from the suitable virial expression of ABPs inside of ∆V .To derive the virial expression, as before, we multiply the equations ( 1) and (3) by r iα , an additional factor Λ iα (r r r), and sum over all particles.The factor Λ iα determines the volume ∆V -Λ iα (r r r) is unity when particle i is within ∆V in the coordinate direction α and zero otherwise 36 .As a result, averaging yields with the Ito interpretation of the colored noise process for e e e 25,42 , and the relations Here, and in the following, we often suppress the index α for compactness of the expressions.Due to confinement, the left-hand sides of Eqs. ( 13) vanish.Similarly, the averages ṙi r i Λ i = r 2 i Λi = 0. Inserting the third term of Eq. ( 12) into Eq.( 11), we obtain the virial expression Here, we neglect terms with the averages Γ i r i Λ i ; these averages vanish as long as inertia (cf.Eq. ( 1)) is taken into account.
For an overdamped dynamics, m = 0 in Eq. ( 1), Γ i r i Λ i yields the thermal contribution to the stress 25 .
For passive systems with v 0 = 0, Eq. ( 14) reduces to the local virial expression in thermal equilibrium presented in Ref. 36.Compared to the global virial 25 , additional terms with the derivative of Λ i , Λi , appear due to particles entering and leaving the local volume ∆V .Most remarkably, activity yields a similar contribution as inertia, namely γ ∑ i v a iα r iα Λi /γ R , compared to ∑ i mṙ iα r iα Λi .This demonstrates that transport of ABPs across a plane yields a contribution to stress similarly to the momentum p p p m i = mṙ r r i of a (passive) particle, in contrast to previous statements 27 .Hence, we can consider as an instantaneous active momentum.Formally, an analogous momentum (impulse) has been introduced in Ref. 35 "as momentum the active particle will receive on average from its active force in the future", thus, the meaning is rather different.Equation ( 14) includes volume and boundary contributions.Thereby, terms with Λi are pure boundary terms.Following the procedure of Ref. 36, the following external, σ e αα , and internal, σ i αα , stress tensor components are identified, ∆V Here, we assume that the volume ∆V is sufficiently far from the surface, and, hence, short-range wall forces do not contribute to the local stress in ∆V .The external stress tensor σ e αα includes contributions by momentum flux across the boundary, with the active flux γ ∑ N i=1 v a i r i Λi /γ R , as well as boundary force terms; the third term on the right-hand side of Eq. ( 16) accounts for stress contributions by forces between particles i inside and j outside of ∆V , and the fourth term for force contributions, when all particles are outside of ∆V , but the connecting line insects the volume ∆V ; λ i j denotes the fraction of the line connecting particle i and j inside of the volume ∆V (cf.Fig. 1) 36 .Note, by suppression of the averages, instantaneous stresses are obtained.
The internal stress tensor σ i αα (17) includes kinetic contributions from inertia and activity of particles, which are inside the volume of interest, as well as interparticle forces.The interparticle-force term includes contributions from particles both, inside of ∆V , here λ i j = 1-this is the standard volume term-, as well as combinations, where a particle is inside and all others, within the finite interaction range, are outside, or both are outside, but their connecting line intersects the volume ∆V , here λ i j < 1.The latter are boundary terms in analogy to the wall contributions in Eq. ( 9) of the global system with finite-range wall forces 40 .
Remarkably, a new expression for the swim stress is obtained denote as local swim stress in the following, different from the "traditional" swim stress of Eq. (10).Most importantly, the swim stress (10) vanishes in ∆V , and, hence, it is not the adequate expression for the calculation of the local active stress.The vanishing expression (10) in a subvolume lead to the conclusion in Ref. 27 that the local pressure in an ideal active gas is identical with the passive-ideal-gas pressure when accounting for the respective local density.As a consequence, it was concluded that the active pressure is a boundary effect, because active forces were not contributing to momentum flux.Our

4/13
calculations contradict this conclusions.First of all, we find an active flux, Eq. ( 15), and, secondly, another expression for the local active stress, Eq. ( 19).The vanishing average of Eq. ( 10) in ∆V together with Eq. (12) shows that the contribution by the active momentum is the negative of the active virial, i.e., However, if we extend the volume ∆V to the whole volume V , i.e., Λ i ≡ 1, Eq. ( 3) in the Ito formulation yields v a iα ṙiα = γ R v a iα r iα , and Eqs. ( 9) and ( 17) become identical.Note that the wall force has then to be taken into account in Eq. ( 17).Thus, our Eq.( 19) is a more general expression for the swim stress, since it applies locally as well as globally.

Global stress of ideal ABP gas
For an ideal gas of ABPs, the interparticle forces are zero, i.e., F F F i j = 0, and Eq. ( 9) becomes in the overdamped limit, m = 0.According to Refs. 24, 25, the swim stress (10) can be written as where d is the dimension, which leads to the expression in 3D.The first term on the right-hand side is the thermal contribution to stress, and the second term the ideal gas swim stress 22,24,25,43,44 Noteworthy, the wall interaction appears twice in Eq. (23).The term proportional to the active velocity reflects and accounts for wall accumulation, whereas the other term captures finite-range effects of the wall force.

Local tress of ideal ABP gas
For zero interparticle forces, Eq. ( 17) becomes With the formal solution of Eq. ( 1), we find in the stationary state.In the evaluation of these expressions, all wall contributions vanish as long as we assume that the volume ∆V is located far enough from a wall such that e −γ(t−t w i ) 1, where t w i is the time of the last encounter of an ABP with a wall before entering ∆V .Thus, we obtain with N ∆V the number of ABPs in the volume ∆V .The contributions with the Stokes number mγ R /γ cancel, and the result for the overdamped dynamics is obtained, as already discussed in Ref. 30.Evidently, the local stress is independent of the wall force.However, due to wall accumulation, the ABP density is not necessarily homogeneous over the whole volume, in particular, it is reduced in the bulk.Hence, walls can affect the bulk stress and pressure.
For an overdamped and athermal dynamics, Eq. ( 25) becomes in 3D by inserting ṙiα = v a iα from Eq. (1), Hence, stress is given by the square of the (active) velocity, similar to the case of a passive system.
Evidently, Eqs. ( 23) and (28) become identical in the limit L α → ∞, i.e., an infinite volume corresponding to the thermodynamic limit in case of a passive system.Then, the local particle density N ∆V /∆V is equal to the density N/V , since finite-size effects and the inhomogeneities by surface accumulation become negligible compared to the overall particle number.However, the equality of the two expressions ( 23) and ( 25) applies for all surface separations as long as (L α − ∆L α )/l p 1, where l p = v 0 /γ R is the persistence length of the active motion.The surface forces in Eq. ( 23) yield additional contributions to the ideal active gas stress.Associated bulk-density variations change the respective values of the local stress (28).
Figure 2 shows simulation results for the local swim stress of non-interacting ABPs in the subvolume ∆V according to Eq. ( 19) as function of the center position r z of ∆V , where ∆L x = ∆L y = 100σ and ∆L z = 0.05L z .Activity is characterized by the Péclet number Pe = v 0 /σ D R , where Pe = 20 in Fig. 2. In addition, the global wall stress according to Eq. ( 21) (k B T = 0) is presented.Evidently, the local stress is independent of the location of the subvolume ∆V in the bulk of the system and it agrees with the wall stress within 1%.Our results indicate that stress in an active system is not a wall effect.According to Eq. ( 29), the local stress is proportional to the square of the active velocity of the ABPs within ∆V , similar to the dependence on the kinetic energy in passive systems.Moreover, the simulations confirm the presence of an active momentum flux with the momentum of Eq. (15).
The dependence of the stress on the activity is presented in Fig. 3(a).The local swim stress (19) coincides perfectly with the wall stress (23) (k B T = 0) of the system.The scaled stress where ρ ∆V = N ∆V /∆V is the bulk density, decreases monotonically with increasing Péclet number, but deviates from the linear dependence of an unconfined (periodic boundary conditions) ideal ABP gas for large Pe. 27,45,46 Te stress reduction is a consequence of an enhanced ABP surface accumulation with increasing Pe and, correspondingly, a reduction of the bulk density.
Here, we like to emphasize that the stresses calculated via Eqs.( 8) and ( 9) perfectly agree with each other.24).(b) Relative density ∆ρ/ρ (light blue squares) and the scaled virial of the wall force, ∑ i F iα v a iα /γ R , as function of the Péclet number (red bullets).The dashed line represents the fit of Eq. ( 31).The wall separation is L z = 100σ and ∆L z /L z = 0.2.Note that symbols overlap, emphasizing the agreement between the two ways of calculating stress.
which approaches zero in the limits L z → ∞ and Pe → 0, and the bulk density becomes equal to the average density ρ as for an passive ideal gas.Such a dependence on L z /l p has been obtained in Ref. 27 for the fraction of adsorbed ABPs at a wall.However, the numerical factor is somewhat different, we find 0.7 compared to 0.6 in Ref. 27.The difference could be related to the different adopted dimensionalities, d = 3 here versus d = 2 in Ref. 27.Moreover, Fig. 3(b) shows that the wall virial ∑ i F w iα v a iα /γ R (23) divided by the ideal ABP swim stress ( 24) is identical with the relative density difference ∆ρ/ρ and, thus, exhibits the same dependence on the Péclet number (the finite-range wall-force contribution is negligible).Of course, this is expected by the equivalence of the stress expressions ( 21) and (25).
Figure 4 illustrates the dependence of the stress on the wall separation L z for the Péclet number Pe = 40.Again, simulation results for wall and local stress agree very well.With increasing system size, the wall effect decreases and the stress approaches the value of the ideal bulk stress.The relation between the local density and the system size is displayed in the inset of Fig. 4, which is well described by Eq. (31).The dependence of the ideal active gas stress on the Péclet number and system size is solely described by the respective dependence of the density ρ ∆V on these quantities, since σ i zz = σ id zz ρ ∆V /ρ.This is confirmed in Figs.3(a) and 4. Some of our findings seem to be rather evident as soon as the validity of the Eq. ( 29) is taken for granted.However, this expression follows from our local stress with the local swim stress (19), and not the stress expression for the system with walls.Specifically, Ref. 27 discusses wall-induced effects only.Hence, by our studies we emphasize the existence of a bulk stress and pressure and its identity with the respective wall values.

Interacting ABPs
Simulation results for the local interparticle force (18), local active (19), and global stress of ABP systems with excluded-volume interactions are depicted in Fig 5(a) as function of the packing fractions φ .Again, we obtain excellent agreement between the various stress-tensor contributions calculated both, globally and locally.Consistent with previous studies, the swim stress contribution decreases with increasing density, whereas the interparticle force contribution monotonically increases over the considered concentration range 16,25,47 .Above φ ≈ 0.4, the contribution due to interparticle forces dominates the overall stress.Figure 5(b) compares the local swim and interparticle stresses with those in the overall system for various wall distances and concentrations.Remarkably, the local swim stress (bullets) is independent of the wall separation, except for φ = 0.25.In this case, the volume ∆V is not sufficiently far away from the walls, and due to the comparably large persistence length l p = 5σ , the ABP velocity is affected by wall interactions (cf.Eq. ( 26)).The effect vanishes with increasing concentration, since the where ∆ρ/ρ is given by Eq. ( 31).Inset: Variation of the bulk density with wall separation.The dashed line follows from Eq. (31).The Péclet number is Pe = 40 and ∆L z /L z = 0.2.persistence length decreases due to enhanced particle collisions at higher concentrations.The local swim stress in ∆V (19) can be separated into two contributions by inserting the athermal and overdamped equation of motion (Eq.( 1)), namely Hence, the reduction of the relative local swim stress in Fig. 5(a) is a consequence of the correlations between the interparticle forces and the propulsion direction.The effect increases with increasing concentration.We like to emphasize that density variations in the bulk are negligible small for the considered wall separations in Fig. 5(b).In fact, surface accumulation is lower in a system of self-avoiding ABPs compared to an ideal ABP gas.The global swim stress (10) includes, in addition to the terms in Eq. ( 32), a wall contribution as shown in Ref. 25.It is the latter part, which implies a system-size dependence of the global swim stress (open circles in Fig. 5(b)).The effect gradually vanishes with increasing system size.In contrast, the global interparticle-force stress is independent of system size, which can be expected for a system at constant average density ρ.However, the local interparticle-force stress depends on L z .Since the total local and global stresses are equal, the system-size dependence of the local interparticle-force stress and that of the global swim stress are equal.Figure 5(b) clearly reveals differences between the global swim (Eq.( 9)) and local swim stress (Eq.( 17)), specifically for finite system sizes.However, in the thermodynamic limit of infinitely large systems, the two definitions yield identical results.The total stress in a volume V (global) or ∆V (local) is not affected by the difference, since other contributions by interparticle forces yield identical differences and, hence, compensate for the disparity in the swim stresses.

Local stress in inhomogeneous systems of ABPs
The stress in phase-separated, inhomogeneous ABP systems has been calculated before by various methods 48,49 .The calculation of the global stress in Ref.48 is performed with a particle-based model (ABPs) in a system with periodic boundary conditions.However, no stress normal to the interface has been obtained.In Ref. 49, a continuum description based on a generalization of the Cahn-Hilliard equation is applied.Here, we illustrate the suitability of our particle-based expression for the calculation of local stresses for a phase-separated system of ABPs confined between two walls.The same geometry is considered as before, but with the dimensions L x = L y = 25σ .The Péclet number Pe = 80 is sufficiently large to yield phase separation into crystalline-like layers adjacent to walls and a fluid phase in the center, as is displayed in Fig. 6(a) and (b).In order to calculate the local stress, we consider local volumes of width ∆L z = 4σ , i.e., we average over four crystalline layers.As shown in Fig. 6(c), the stress normal to the walls and the interface (z direction) is constant over the whole system.Moreover, the local stress agrees with the stress exerted on the wall.In the various regimes, stress is dominated either by the swim stress (Eq.( 19)) (central fluid part) or the force contribution to stress (Eq.( 18)) (crystalline wall part).Specifically in the crossover regime, where both stresses contribute, the local stress is equal to the global stress (wall stress).This result confirms that the derived expression is suitable for calculating local stress even in inhomogeneous systems.zz with respect to the active ideal gas stress σ id zz in a system of ABPs with excluded-volume interactions (dotted), the local swim stress (19) (solid), and the contribution by interparticle forces (18) (dashed) as a function of the ABP packing fraction φ .The colors refer to systems, where the system-size dependence of the various stress contributions is analyzed (see (b)).(b) Swim stress (bullets) and interparticle-force stress (triangles) calculated locally (17) (solid) and for the total system including walls ( 9) (open symbols) as a function of the wall separation L z for the concentrations φ = 0.25, 0.3, 0.35, 0.4, and 0.45.The color code is the same as in (a).Note that the density-dependence changes nonmonotonically.The Péclet number is Pe = 10, the wall separation L z = 200σ , and the width ∆L z /L z = 0.2.The lines are guides for the eye.

Summary and conclusions
We have derived expressions for the stress (pressure) of a system of confined active Brownian particles, specifically, generally valid expressions for the local stress in a subvolume ∆V (r r r) centered around a point r r r.In addition to previously derived contributions to the stress of active systems confined between walls 25 , the contribution of the finite-range surface interaction is taken into account in the calculation of the global stress.For the stress in a local volume (∆V ), we find two expressions by following the strategy of Ref. 36.On the one hand, stress is given by momentum transfer across a hypothetical plane, including force as well as kinetic (momentum) contributions.Here, we find a motility contribution by introducing an active momentum in analogy to the kinetic momentum of a particle of mass m.On the other hand, we identify a virial expression for the active stress (local swim stress) of particles inside of ∆V , different from the known swim stress 22,25,41 .In fact, in Ref. 35 a formally similar expression has been defined, however, with an active impulse of very different meaning.Computer simulations show that our obtained local stress expression agrees quantitatively with the corresponding global stress expression of an ABP system confined between walls for both, non-interacting ABPs as well as ABPs interacting via a Lennard-Jones potential.This underlines the existence of an equation of state for a system of spherical ABPs.
Our results reach beyond previous considerations and discussions on the stress in active systems.Initially, swim pressure has been introduce via Clausius' virial 50 , taking active forces into account 22,23 .Based on the equations of motion of ABPs for an infinite system, the swim pressure of an ideal active gas has then been proposed 22 .Subsequently, derivations of active pressure expressions have been presented for ABPs confined between walls [25][26][27] or in periodic systems 25,27 .Alternatively, pressure expressions have been determined via the Fokker-Planck equation of an ABP system 28 , or the equations of motion for the density field 35 .A derivation of an expression for a local pressure has be attempted in Ref. 27, with the conclusion that a local pressures exists, but the bulk value differs from the mechanical pressure exerted on confining walls.In case of an ideal gas of ABPs, the bulk pressure would be given by ρ(r r r)k B T , with the position dependent density ρ(r r r) and, hence, would vanish in an athermal system.Hence, active pressure is considered as a boundary effect 27 .In contrast, the present calculations provide a general expression for the local stress and pressure and thus, mark a substantial advancement.The derived local stress/pressure expressions are more general and reduce to the known expressions in the limit of the local volume being equal to the overall volume.This is emphasized by the fact that the local swim stress ( 19) is finite, while the "traditional" swim stress (10) vanishes in ∆V .Most importantly, our calculations demonstrated that active stress/pressure is not a wall (boundary) effect, as stated in Ref. 27, but is caused by active momentum transport in analogy to momentum transfer in a passive system.Hence, our results allow us to resolve apparent contradictions in the interpretation of local stress and consequently in the existence of equations of state in active systems.
As we demonstrated, local stress or pressure can be calculated in inhomogeneous ABP systems.Extensions to local shear stresses are straightforward and, thus, surface tensions of active systems can be determined.

Methods
We perform simulations in three dimensions considering the overdamped Eq.
where r i j = |r r r i j | and the interaction strength is set to ε/k B T = Pe; Pe is Péclet number Pe defined as This yields the same particle overlap independent of the Péclet number 52 .The ABPs are confined between two walls parallel the xy-plane the Cartesian reference frame located at S iz = ±L z /2 (cf.Fig. 1).Parallel to the walls, periodic boundary conditions are applied.The purely repulsive ABP-wall interaction is described by the Lennard-Jones potential of Eq. ( 33) with r i j replaced by z i − S iz .
We determine the stress σ zz along the z-axis in two ways.Firstly, we calculate the global stress of the whole system according to Eq. ( 9) (m = 0).Secondly, the local stress in a volume ∆V is calculated via Eq.(17).Thereby, the box dimension L z normal to the walls is chosen such that it is significantly larger than the persistence length l p = v 0 /2D R = Peσ /2 of an ABP, in particular, we consider wall separations L z 5l p .The volume ∆V of width ∆L z is located in the bulk of the system along the z-axis (cf.Fig. 1).If not indicated otherwise, the dimensions of the volume V are L x = L y = 40σ , L z = 100σ , and ∆L z = 0.2L z .In Fig. 1, r z denotes the position of the center of the slit within the interval L z /2 < r z < L z /2.The number density of ABPs in V is ρσ 3 = 0.3.

Figure 1 .
Figure 1.(Left) Schematic of the local subvolume ∆V (yellow) embedded in the bulk of a system confined between walls (light blue).The fraction λ i j of the line joining particle i and j, which lies inside ∆V , is indicated by a solid line.(Right) Schematic of the subvolume ∆V for the calculation of local stress along the z-axis in the simulations.The walls are separated by L z , and periodic boundaries are applied in the other two directions.The center position of ∆V along the z-axis is denoted by r z .

Figure 2 .
Figure 2. Magnitude of the local stress σ zz according to Eq. (19) in a system of non-interacting ABPs as a function of the center position r z of the local subvolume ∆V for Pe = 20 (blue squares).The side length of the cubic volume V is L α = 100σ and ∆L z = 0.05L z .The solid line (red) indicates the virial stress of the volume V with walls (Eq.(21), k B T = 0).

Figure 3 .
Figure 3. (a) Magnitude of the local (blue triangles) and global stress (red bullets) in a system of non-interacting ABPs as a function of the Péclet number Pe.The solid line (green) indicates the ideal swim stress Eq. (24).(b) Relative density ∆ρ/ρ (light blue squares) and the scaled virial of the wall force, ∑ i F iα v a iα /γ R , as function of the Péclet number (red bullets).The dashed line represents the fit of Eq. (31).The wall separation is L z = 100σ and ∆L z /L z = 0.2.Note that symbols overlap, emphasizing the agreement between the two ways of calculating stress.

Figure 3 (
Figure 3(b) shows the relative density difference ∆ρ/ρ = (ρ − ρ ∆V )/ρ with respect to the mean density ρ = N/V as function of the Péclet number (squares).The simulation data, with the bulk density ρ ∆V , can well be described by the relation

Figure 4 .
Figure 4. Magnitude of the local (blue triangles) and global stress (red bullets) in a system of non-interacting ABPs as a function of the system size L z .The solid line (green) indicates the ideal swim stress.The dashed line indicates the stress σ i zz = σ id zz ρ ∆V /ρ, where ∆ρ/ρ is given by Eq. (31).Inset: Variation of the bulk density with wall separation.The dashed line follows from Eq.(31).The Péclet number is Pe = 40 and ∆L z /L z = 0.2.

Figure 5 .
Figure 5. (a) Relative local stress σ izz with respect to the active ideal gas stress σ id zz in a system of ABPs with excluded-volume interactions (dotted), the local swim stress (19) (solid), and the contribution by interparticle forces (18) (dashed) as a function of the ABP packing fraction φ .The colors refer to systems, where the system-size dependence of the various stress contributions is analyzed (see (b)).(b) Swim stress (bullets) and interparticle-force stress (triangles) calculated locally (17) (solid) and for the total system including walls (9) (open symbols) as a function of the wall separation L z for the concentrations φ = 0.25, 0.3, 0.35, 0.4, and 0.45.The color code is the same as in (a).Note that the density-dependence changes nonmonotonically.The Péclet number is Pe = 10, the wall separation L z = 200σ , and the width ∆L z /L z = 0.2.The lines are guides for the eye.

Figure 6 .
Figure 6.Local (normal) stress in an inhomogeneous ABP system confined between walls.(a) Snapshot of a section of the system illustrating the crystalline-like layers adjacent to a wall (left) and the fluid phase in the center (right).(b) ABP-density distribution.Due to the pronounced layering adjacent to a wall, the density peaks are narrow and large, exceeding the y-scale by far.(c) Contributions of the local swim stress (19) (blue bullets) and the interparticle force stress (18) (magenta squares) to the overall stress (green triangles).The solid red line indicates the global stress calculated via Eq.(9).The size of system is L x = L y = 25σ , L z = 100σ , and the width of the local volume ∆L z = 4σ .

( 1 )
, m = 0, without thermal fluctuations.The translational equations of motion (1) are solved via the Ermak-McCammon algorithm51 .The equations of motion (3) for the orientation vectors are solved using the scheme described in Ref.25.Pair-wise interparticle interactions are taken into account by the repulsive Lennard-Jones potential