A method (800) for laterally sealing a tube (116) of packaging material (102) using an ultrasonic sealing device (121), the method comprising: placing (802) a laterally sealing portion (112) of the tube (116) between an
ultrasonic generator (118) and an anvil (120) including ridges (600, 700), wherein the laterally sealing portion (112) of the tube (116) comprises a first two-layer sub-part (212), a three-layer sub-part (214), and a second two-layer sub-part (216), and discharging ultrasonic acoustic vibrations having a frequency (f) and an amplitude (A) from the
ultrasonic generator. The device (118) transmits heat to the transverse sealing portion (112), thereby causing
heat generation in the
cardboard (104), which in turn causes the plastic foil (106) in the transverse sealing portion (112) to melt, and the tube (116) is pressed (806) together by pressure (P) between the
ultrasonic generator (118) and the anvil (120), thereby causing the plastic foil (106) of the transverse sealing portion (112) to bond together, thus forming a transverse sealing portion (124), wherein the ridges (600, 700) of the anvil (120) include: for receiving the tube (116) The first two-layer sub-part (602) of the first two-layer sub-part (212), the first two-layer or three-layer sub-part (604) for receiving the first two-layer sub-part (212) or the three-layer sub-part (214) of the tube (116), the three-layer sub-part (606) for receiving the three-layer sub-part (214) of the tube (116), the second two-layer or three-layer sub-part (608) for receiving the three-layer sub-part (214) or the second two-layer sub-part (216) of the tube (116), and the second two-layer sub-part (216) for receiving the tube (116). The second two-layer sub-section (610), wherein the ridges (600, 700) have equal heights (H) in the first two-layer sub-section (602), the first two- or three-layer sub-section (604), the second two- or three-layer sub-section (608), and the second two-layer sub-section (610), wherein a combination of the characteristics of the frequency (f), the amplitude (A), the pressure (P), and the
cardboard (104) is selected such that the temperatures in the first two-layer sub-section (212), the three-layer sub-section (214), and the second two-layer sub-section (216) of the tube (116) are equal.