Investigation of gasdynamic phenomena associated with the ram accelerator concept