I am trying to create a jet in cross flow with a flow from the bottom floor as a second inlet. I am trying to implement the code in the following way:
Blockquote sharpen_tanh = 5000.0
source_func_xl = (tanh(sharpen_tanh * (x - source_origin[0])) + 1.0) / 2.0
source_func_xh = (tanh(sharpen_tanh * ((source_origin[0] + source_dim[0]) - x)) + 1.0 ) / 2.0
source_func_zl = (tanh(sharpen_tanh * (z - source_origin[2])) + 1.0) / 2.0
source_func_zh = (tanh(sharpen_tanh * ((source_origin[2] + source_dim[2]) - z)) + 1.0) / 2.0
gradient_normal = (0.1 * source_func_xl * source_func_xh * source_func_zl * source_func_zh )
source = PointwiseBoundaryConstraint(
nodes=flow_nodes,
geometry=geo.source,
outvar={“u”: 0, “v”: gradient_normal, “w”:0,},
batch_size=cfg.batch_size.source,
criteria=Eq(y, source_origin[1]),
batch_per_epoch=5000,
)
flow_domain.add_constraint(source, “source”)
But there is no flow from this “source”.
Any help would be nice.