CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 9 of 9
Search took 0.00 seconds.
Search: Posts Made By: peteryuan
Forum: OpenFOAM Programming & Development February 5, 2014, 08:01
Replies: 14
Views: 5,385
Posted By peteryuan
yep, the receiving data part is based on that...

yep, the receiving data part is based on that location. The sinding out data part is based on http://foam.sourceforge.net/docs/cpp/a09284_source.html on line
226 os << magSf[faceI] <<...
Forum: OpenFOAM Programming & Development February 4, 2014, 17:36
Replies: 14
Views: 5,385
Posted By peteryuan
just a quick feed back: I have not tried this...

just a quick feed back:
I have not tried this with a new class.
But if I put
this->refValue() = this->patch().nf() * temp[faceI];
in my old code, which assign a single value for the whole...
Forum: OpenFOAM Programming & Development February 4, 2014, 17:13
Replies: 14
Views: 5,385
Posted By peteryuan
Thanks Joachim, I will try that. Actually I...

Thanks Joachim, I will try that.
Actually I did not know how to implement a new BC. So I simply backed up the original file and modified my src directory, then recompile.
"I modified the...
Forum: OpenFOAM Programming & Development February 3, 2014, 19:51
Replies: 14
Views: 5,385
Posted By peteryuan
Hi Joachim: thank you so much for your help. ...

Hi Joachim:
thank you so much for your help.

I added this two lins in my forAll loop:
vector faceINormal = this->patch().Sf()[faceI] / this->patch().magSf()[faceI];
...
Forum: OpenFOAM Programming & Development February 3, 2014, 16:51
Replies: 14
Views: 5,385
Posted By peteryuan
I figured out a real dummy solution for my...

I figured out a real dummy solution for my problem.
I firstly use lockfile as an output file stream os:
os << temp[faceI]
then define lockfile as a input file stream is:
is >>...
Forum: OpenFOAM Programming & Development February 3, 2014, 16:41
Replies: 14
Views: 5,385
Posted By peteryuan
pvm_upkdouble(&temp[faceI],1,1); With this...

pvm_upkdouble(&temp[faceI],1,1);
With this function pvm would assign the unpacked double value to temp[faceI],
so temp[0], temp[1], temp[3] ... are just single double values, like 312.99
I also...
Forum: OpenFOAM Programming & Development February 3, 2014, 12:06
Replies: 14
Views: 5,385
Posted By peteryuan
By the way, this is the only one that worked...

By the way, this is the only one that worked until now. But this does not help me much.

this->refValue()[faceI] = pTraits<Type>::zero;
Forum: OpenFOAM Programming & Development February 3, 2014, 12:03
Replies: 14
Views: 5,385
Posted By peteryuan
Hi Bruno, thanks for your reply! I tried that...

Hi Bruno, thanks for your reply!
I tried that option already - right at the beginning. But it that solution is too nice and simple to be right.
Here is the error message from wmake:...
Forum: OpenFOAM Programming & Development January 30, 2014, 04:39
Replies: 14
Views: 5,385
Posted By peteryuan
Question this->refValue()[faceI] = ??

Dear OF users,

as mentioned in my last post, I am doing a coupling between OF and another programm with pvm....
Showing results 1 to 9 of 9

 
Forum Jump

All times are GMT -4. The time now is 01:14.