Skip to content

Reply To: About VTI file in porousmedia

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics About VTI file in porousmedia Reply To: About VTI file in porousmedia

#10318
luizeducze
Participant

Dear Jafari,

From your message I see an error in the code. I am really sorry for that.

You can see in the code that we have some numbers in operations like 0.5, or 2. The correct way is to define T(0.5) or T(2.), so they can be converted to float for gpu running.

Just do the following procedure. Replace for example:
length[0] + outletLength – inletLength )/2.

by:
length[0] + outletLength – inletLength )/T(2.)

And do the same thing for all free numbers in the code.

Kind regards,
Luiz