I am creating a Simscape gas model where I need to use 3 way directional valves. Unfortunately there are no directional valves in the gas library. I used the 3 way directional valves from the hydraulic library but I get dashed red lines when I try to connect the valve to the other gas components. Is there a way of converting a hydraulic block to a gas block in Simulink/Simscape?
Edit: Added image of model
As @Wolfie has indicated, you can't connect a hydraulic component to a gas component, they are two completely different physical domains. To recap and add to what your options are:
Use the Simscape language to create your own block of a gas directional valve.
Use Simulink to Physical Signal and Physical Signal to Simulink blocks to interface your Simscape model to your model of the gas directional valve created in Simulink. Probably not as good a solution (even though it's potentially easier), as you lose the acausality that Simscape provides by going back into Simulink.