how to make two surface flush with each other

If there are two surfaces which are “scraping” each other i.e. partially intersecting along a broken line or creating tiny gaps where not intersecting (see attached), how can I modify them to be flush with each other? That is, exactly touch along a line with neither intersection nor any gap between them. What is the trelis way to do this?

As you can understand, this scraping creates a lot of problem during volume meshing, creating flat cells, non-meshable vol etc. So far I have been following a crude approach of increasing the gap between them so that they do not intersect anywhere. I do this by creating a cutting plane to cut a small part off of one of the offending surfaces and discarding the small piece of this surface. This introduces a lot of error in my model because I know that the surfaces should be touching with no gap between them. Also, it is not possible to always create a cutting plane if the surfaces are curved where they touch.

Thank you

You will want to use Tweak (in the GUI: Geometry-Surface-Modify-Tweak-Replace with Surface).

Here’s an example:

reset
brick x 1
vol 1 move x -0.5
vol 1 copy move x 1
create planar surface xplane extended percentage 200
volume 3 rotate 7 about z
tweak surface 6 10 replace with surface 13
del vol 3

Thank you for sharing that useful method. However, in my case all of these issues are between sheet bodies. How can I tweak surfaces which are not part of a volume? For example, for the following two surfaces,

I get the following error:

import acis “v2_H_PAI_c_cut4.sat” nofreesurfaces attributes_on separate_bodies
import acis “CM_F_A_dipping_in_fw_cut3.sat” nofreesurfaces attributes_on separate_bodies

ERROR:
Cannot tweak surfaces that do not belong to a solid volume

How will you modify these two surfaces to be flush with each other?

I get error

import acis “v2_H_PAI_w.sat” nofreesurfaces attributes_on separate_bodies
import acis “w_boundary_fault_cut2.sat” nofreesurfaces attributes_on separate_bodies
ERROR:
ACIS API error number 94038
ACIS API message = no loop through new edges and vertices

Thanks for the two surface. Do you need the entire surface or can you webcut it so that there is a nice curve where elements can be shared?

webcut body 2 with sheet body 1

Could you use the move command to get the surface where you need it?