|
[Sponsors] |
September 7, 2023, 04:51 |
Two dynamic meshes, one solver
|
#1 |
New Member
Luke Hirl
Join Date: Jul 2023
Location: Gießen
Posts: 16
Rep Power: 3 |
I am currently trying to modify interfoam. I would like to solve some equations on one dynamic mesh and the rest one the other and transfer the data with the help of the meshToMesh functionality.
In interfoam the dynamic mesh is declared by Code:
autoPtr<dynamicFvMesh> meshPtr(dynamicFvMesh::New(args, runTime)); dynamicFvMesh& mesh = meshPtr(); If I want to create a second mesh in the same way by just changing mesh to FLmesh for example, wmake throws the following error: "FLmesh was not declared in this scope" this also happens if you try to do that in the way proposed in this Thread: Data exchange for internal field values between two different mesh or if you just rename mesh to something else. So i guess i have to declare FLmesh somewhere before the main loop, but I don't know where. Further I am unsure if I can actually declare/initialize the second mesh in the same way or if I need to change the arguments that are used in the meshPtr or if it is enough to just rename meshPtr to meshPtr2 for example. If anyone needs a code to look at you can find it attached as a zip-File down below. It is an EHD solver with which I am trying to simulate Electrosprays. however the liquid is contacted somewhere back in the feeding of it and the capillary is a nonconducting resin so the electric field results mainly from the accumulated charges at the surface/interface of the liquid. As the resin has a low relative permitivity the electric field will behave differently if I include the permitivity and the region of the resin. Therfore I wanted to solve the Electric and Thermal(mainly joule heating in liquid) on a seperate mesh compared to the liquid calculations. |
|
Tags |
dynamic mesh, ehd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
viscosity udf don't use correct temperature and strain rate | rezvani | Fluent UDF and Scheme Programming | 8 | May 27, 2021 06:40 |
Hybrid discretisation - blend factor | gcoopermax | CFX | 5 | September 23, 2016 09:05 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
question about dynamic meshes | zhhwoo | FLUENT | 0 | August 2, 2006 23:36 |