set of xyz data in blockMesh
Good Day Folks,
Basically what I did is by using camera to capture wing motion by frame by frame, the output is .csv file format. If you see inside csv file, the 1st row gives first frame(xyz of point 1,2,3), 2nd row gives 2nd frame (xyz of point 1,2,3) similarly up to last. I did small program in Matlab program to replicate my wing. I don't how to make loop inside or any suitable way for create blockMesh. Our OF folks suggest me few ways, 1).cylinder blockMesh from potentialFoam is suitable for importing the coordinates to make blockMesh 2.)write script file and import in blender for create blockMesh. I am thinking by using these coordinates or script to make loop inside the blockMesh is somewhat easy to replicate the wing. Because I am new to blender & other programming language apart from matlab. kindly see my attached image(wing), csv file & matlab program for your kind perusal. kindly help me, how I can built blockMesh? |
you can repeat coordinate using codeStream,look at following tutorials
Quote:
Code:
vertices #codeStream |
Many thanks for your reply & information Nima Sam,
1). You are correct, cylinder tutorial is good for this case. Please see the attached zip file for your kind persual. I edit blockMeshDict, I hope I have to correct something. kindly guide me. 2). I already try to run cylinder tutorial, but I am not successful on that, I run potentialFoam it shows error, take a look [ http://www.cfd-online.com/Forums/ope...tml#post441524 ]. I didn't understand how it works. Please help me |
Good Day Nima sam,
I hope you see my blockMeshDict, Kindly guide me what I have to do? give your feedback. |
Dear David
i dont have time to check your blockMeshDict, but a fast look in it ;) i feel you should write appropriate program, in fact, codeStream gives this chance to write a run-time compilable program. Hint: check your syntax and the program you write |
Many Thanks for your reply & Information NimaSam, Apolozie for disturbing you, Here I post my blockMesh & also see my attached csv file & matlab script. kindly help me, I am looking for only meshing.
Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Quote:
|
Quote:
Again it gives the same error, please post your feedback in this link [http://www.cfd-online.com/Forums/ope...ml#post441524], kindly help me |
1 Attachment(s)
Greetings to all!
@David: Quote:
As for the "blockMeshDict":
And I know I've said this before to you: start working with a simple geometry! Then gradually increase the level of complexity. Otherwise it will be very complicated to help you, as has happened in this case. Since there are 24 points, I'm not going to spend time figuring out what point is where! Specially since you took down the CSV attachement :( Last but not least, to other forum readers, the following thread is also related to this same topic, which David created some time ago as well, but he is trying to address the same issue in another form: www.cfd-online.com/Forums/openfoam-meshing-blockmesh/121421-making-loop-inside-blockmesh-help-plz.html Best regards, Bruno |
Good Day Bruno,
I hope you fine, Many Thanks for coming. last couple of weeks, I try two way for Making blockMeshDict, a) Convert matlab script to python script (I am new to python that's why I convert using this link : [ http://ompclib.appspot.com/m2py ] I hope there is some mistake in converted python script)then import in blender to make blockMeshDict-------> suggested by elvis b) Another one is your suggestion, I edit blockMeshDict with including external domain. Kindly see the attached file for your kind perusal and also please give your suggestion about converted python script ( I am newbie) |
Good Day Bruno,
Kindly see my above post and guide me. |
2 Attachment(s)
Hi David,
I finally managed to look into this. OK, my suggestions from this point onwards are:
Best regards, Bruno |
Many thanks bruno, apologize for late reply,First of all I have to go through thoroughly block Mesh concept and then I will let you. I hope it works for this case.
Have a nice day |
All times are GMT -4. The time now is 08:23. |