A method of operating a system for analyzing and treating drilling mud, said system comprising: a drilling mud recycling line comprising equipment configured to perform a process of recycling said drilling mud, a magnetic resonance imaging device configured to provide at least one image of at least a portion of said drilling mud in said drilling mud recycling line, pressure sensors arranged to measure a radial pressure profile of drilling mud in said drilling mud recycling line, and a processor for analyzing and controlling the recycling of said drilling mud; said method comprising: generating standard quality parameter Q S = k S 2 + n S 2 from analysis of a standardized sample of said drilling-mud, said analysis of said standardized sample generating standardized stress parameters k S and n S in the power law equation σ S ( r)= k S [ γ S ( r)] n S from rheological parameters standardized radial shear stress σ S ( r) and standardized radial shear rate parameter γ S ( r); imaging at least a portion of a test sample of said drilling mud by means of said MRI device; measuring at least two radial pressure profiles of said test sample; analyzing said MRI image and said radial pressure profits to derive rheological parameters radial shear stress σ ( r) and radial shear rate γ ( r) of said drilling mud; determining at least one drilling mud composition quality parameter Q c = k c 2 + n c 2 from analysis of said test sample of said drilling mud, said analysis generating drilling-mud stress parameters k c and n c in the power law equation σ C ( r)= k C [ γ C ( r)] n C from said rheological parameters drilling-mud radial shear stress parameter σ C ( r) and drilling-mud shear rate parameter γ C ( r) communicating results of said analysis to said drilling mud recycling equipment; and controlling at least one step in the recycling of said drilling mud according to said results dependent on a comparison of Q C to Q S. a drilling mud recycling line comprising equipment configured to perform a process of recycling said drilling mud, a magnetic resonance imaging device configured to provide at least one image of at least a portion of said drilling mud in said drilling mud recycling line, pressure sensors arranged to measure a radial pressure profile of drilling mud in said drilling mud recycling line, and a processor for analyzing and controlling the recycling of said drilling mud; said method comprising: generating standard quality parameter Q S = k S 2 + n S 2 from analysis of a standardized sample of said drilling-mud, said analysis of said standardized sample generating standardized stress parameters k S and n S in the power law equation σ S ( r)= k S [ γ S ( r)] n S from rheological parameters standardized radial shear stress σ S ( r) and standardized radial shear rate parameter γ S ( r); imaging at least a portion of a test sample of said drilling mud by means of said MRI device; measuring at least two radial pressure profiles of said test sample; analyzing said MRI image and said radial pressure profits to derive rheological parameters radial shear stress σ ( r) and radial shear rate γ ( r) of said drilling mud; determining at least one drilling mud composition quality parameter Q c = k c 2 + n c 2 from analysis of said test sample of said drilling mud, said analysis generating drilling-mud stress parameters k c and n c in the power law equation σ C ( r)= k C [ γ C ( r)] n C from said rheological parameters drilling-mud radial shear stress parameter σ C ( r) and drilling-mud shear rate parameter γ C ( r) communicating results of said analysis to said drilling mud recycling equipment; and controlling at least one step in the recycling of said drilling mud according to said results dependent on a comparison of Q C to Q S. generating standard quality parameter Q S = k S 2 + n S 2 from analysis of a standardized sample of said drilling-mud, said analysis of said standardized sample generating standardized stress parameters k S and n S in the power law equation σ S ( r)= k S [ γ S ( r)] n S from rheological parameters standardized radial shear stress σ S ( r) and standardized radial shear rate parameter γ S ( r); imaging at least a portion of a test sample of said drilling mud by means of said MRI device; measuring at least two radial pressure profiles of said test sample; analyzing said MRI image and said radial pressure profits to derive rheological parameters radial shear stress σ ( r) and radial shear rate γ ( r) of said drilling mud; determining at least one drilling mud composition quality parameter Q c = k c 2 + n c 2 from analysis of said test sample of said drilling mud, said analysis generating drilling-mud stress parameters k c and n c in the power law equation σ C ( r)= k C [ γ C ( r)] n C from said rheological parameters drilling-mud radial shear stress parameter σ C ( r) and drilling-mud shear rate parameter γ C ( r) communicating results of said analysis to said drilling mud recycling equipment; and controlling at least one step in the recycling of said drilling mud according to said results dependent on a comparison of Q C to Q S.