A virtual node algorithm for Hodge decompositions of inviscid flow problems with irregular domains