Skip to content

Reply To: Cnojugated Heat Transfer

#8040
Inko0521@126.com
Participant

Thank you so much for your reply!
I tried this method but there still seems to be some problem, could you please help me further?

1. To begin with, I defined two thermal omegas from two different converters.
Codes:
T Tomega = converter.getLatticeThermalRelaxationFrequency();
T SolidOmega = converterSolid.getLatticeThermalRelaxationFrequency();
2. Then, I restated the AdvectionDiffusionBGKdynamics for Solid in the header file ‘advectionDiffusionDynamics.h’.
Codes:
template<typename T, typename DESCRIPTOR, typename MOMENTA=momenta::AdvectionDiffusionBulkTuple>
using LocalOmegaAdvectionDiffusionBGK = dynamics::Tuple<
T,DESCRIPTOR,
MOMENTA,
equilibria::FirstOrder,
collision::OmegaFromCell<collision::BGK>,
AdvectionDiffusionExternalVelocityCollision
>;
3. Thirdly, I define the Dynamics for (1=fluid, 5=solid)
Codes:
ADlattice.defineDynamics<AdvectionDiffusionBGKdynamics>(superGeometry,1);
ADlattice.defineDynamics<LocalOmegaAdvectionDiffusionBGK>(superGeometry,5);
4. During the process of ‘set boundary’ and ‘define initial conditions’, everything is basically according to the original code. But when I enter the following definition, there is a problem reporting an error ‘Overloaded functions that do not match the argument list’.
Codes:
ADlattice.defineField<descriptors::OMEGA>(superGeometry.getMaterialIndicator({5}),SolidOmega);

It’s worth noting that the fluid’s Omega has been set to ‘Tomega’.
Am I doing this correctly and is there something I am missing that is preventing the program from working properly?
Very much looking forward to your reply, which is highly appreciated!

Best regards,
Jethan