Imagine a wall (membrane). Concentration of a specimen A on one side of the wall is cA and it has the temperature TA. The concentration of a specimen B on another side of the wall is cB and it has the temperature TB. Specimen A nad B diffuse against each other (assume steady state). Can somebody write the energy balance equation for this case?