  We consider a model that charged static spherically-symmetric black hole is
surrounded by dark fluid with nonlinear equation of state $p_d=-B/\rho_d$. We
find that the energy density of the dark fluid can be characterized by two
parameters. The derivation of metric solution, as well as the calculation of
black hole thermodynamical quantities as functions of horizon radius, are
performed. Specially, in $D$-dimensional Einstein gravity and Gauss-Bonnet
gravity cases, we plot the metric functions and corresponding thermodynamical
quantities, such as mass, Hawking temperature and heat capacity, by varying the
values of spacetime dimensions and dark fluid parameters. The effects of the
dark fluid parameters on black hole solutions as well as on thermodynamical
stability of black holes are discussed.
