SimScale CAE Forum

Methane through a pipe


#1

Hello, i would like to simulate the shifting of methane gas in a 500 km pipe in order to determine the loss of pressure, i have uploaded a model thanks to onshape but the lenght of the latter is limited to 100 m, in that case, how can i get around the problem ?

thanks a lot


Incompressible flow\compressible flow and roughness
#2

Hi @theotoilette!

Sorry for the delayed response, just saw that you posted it in the Projects section.

So about the dimensions, SimScale supports models that do not exceed any dimension by more than 50000 meters, you can try to scale it down and work with that. Regarding the pressure loss you can use a result control item and use Area Average and choose two surfaces - in your case inlet and outlet - to visualize the pressure drop in the post-processing plot. Hope that makes sense, let me know if you have any further questions.

Best,

Jousef


#3

Hello, i want to do a simulation of methane gas in a pipe in order to determine the loss of pressure in it. However, i have faced two main problems:
1-Although methane gas is compressible, is an incompressible simualtion possible in a good approximation ?
2-I’d like to set a roughness height number for my simulation (initialy 0), however simscale refuse to fix the number chosen (roughness of steel around 0,2 mm 0,008) and stay at 0. Why ? and how can i modify it ?


#4

Hi @theotoilette!

  1. That’s correct, you would have to perform a compressible flow simulation - however compressible simulations are not very “cooperative” in terms of convergence but I think there can be a way to achieve a solution. @Get_Barried & @anirudh2821998, want to add some ideas here?

  2. Please share the project, will check this out. You should be able to change the roughness height :thinking:

Cheers,

Jousef


#5

Hi @theotoilette,

This depends on what you’re trying to find out. If you are looking for pressure losses that occur in the bends and angles of pipes, then yes incompressible is enough. If instead you are looking for overall pressure losses that say dependent on other less flow related losses (not sure about this, ani can probably chime in) then compressible may be more appropriate though I would think that the increase in accruacy would not be worth the hassle.

So do define exactly what you are looking for at where.

Cheers.

Regards,
Barry


#6

Thanks for your replies, this is what i’ve done 500 m pipe with incompressible fluid, i’ve still tried to modify the roughness height but it stays at 0 :joy:.
Moreover, if i want to do the same simulation with compressible fluid, should i change features ? or i just take the same simulation but with a compressible fluid ?


#7

Hi @theotoilette!

I have tried different numbers and all work…that’s odd. @CFD-SQUAD, can you also please try to modify the number and see if it works for you?

Just creat a new simulation of type compressible and keep your settings in the first iteration. I am quite sure that we need to make adaptions anyway :slight_smile:

Best,

Jousef


#8

Finaly, i can change the roughness height but i cannot set a number under 1 m wich is problematic because the roughness of steel is around 0,045 mm (0,000045 m), i’ve even tried in inches but the problem is the same, what can i do ?


#9

Hey @theotoilette!

Please use a dot as the delimiter and not a comma as you are trying to do. This is an issue I will immediately report, there should be a message saying that a comma is not allowed. Let me know if that helped!

Best,

Jousef