Model structure of a cosmic ray mediated stellar or solar wind