coupledMatrix and RegionCoupling - urgent
Dear All
I have compiled coupledmatrix and regioncoupling patches from openfoam 1.6ext in openfoam 2.1x successfully. now Im trying t test the conjucatecavity tutorial for it. But there comes a problem Code:
I appreciate any idea. Best Mahdi |
Hi Mahdi,
Quick answer - read the subsection "3.2.6 Linking new user-defined libraries to existing applications" on the OpenFOAM User Guide: http://www.openfoam.org/docs/user/co...plications.php Best regards, Bruno |
Hi Bruno
Thanks for the link.I have compiled them as a part of openfoam library not user library. just to explain my more my problem the problem is arising from this line of fvsPatchfieldNew.C when creating phi. Code:
typename patchConstructorTable::iterator cstrIter = Mahdi |
Hi Mahdi,
I took a better look at the first post... shouldn't the name to be used be "regionCoupling" and not "regionCouple"? Best regards, Bruno |
Many thanks for your kind answer Bruno
Regioncouple is the name of regioncouplepolypatch and regioncouplefvpatch. regiongcoupling is the name of fieldpatches. regioncouple patches are based on couplefvpatch. as mentioned here by HRv for openfoam extended, http://www.cfd-online.com/Forums/openfoam-solving/57847-coupled-regions.html, there is sth that is forcing that name of the patch and field should be the same. I checked the corresponding code in openfoam 1.6ext and openfoam 2.1x but i didnt understand where I can solve it. just i should mention that regioncoupling in openfoam 1.6ext is working. best Mahdi |
Hi Mahdi,
Mmm... I've taken a look into the source code of 1.6-ext and I found that the file "src/finiteVolume/fields/fvsPatchFields/constraint/regionCouple/regionCoupleFvsPatchField.H" has the following code: Code:
public: So, it's no wonder that "regionCouple" doesn't show up in the list :( And this probably means that Hrv hasn't fixed this yet, at least on these versions... Best regards, Bruno |
Hi Burono,
Thanks for checking the codes. But if it is not fixed, how i can run the code in openfoam1.6ext?! Best Mahdi |
Hi Mahdi,
Probably there is a hack somewhere in 1.6-ext that forces the loading of the correct class? Best regards, Bruno |
Hi Bruno
I think that should be hard for me to do. I check the patch type, there is a bool attach , if i make it false, it will pass the privious error but it will blows after the first iteration. Best Mahdi |
Hi Mahdi,
Have you tried changing: Code:
TypeName("regionCoupling"); Code:
TypeName("regionCouple"); Best regards, Bruno |
Many thanks Burono,
Yes I have did it. but I got this Code:
Reading field p mahdi |
All times are GMT -4. The time now is 08:01. |